Skip to content

Commit

Permalink
fix(k8s): fix issues with minikube v1.17
Browse files Browse the repository at this point in the history
This updates kubectl to v1.20.2 which should fix compatibility issues
reported with recent versions of minikube.
  • Loading branch information
edvald committed Feb 3, 2021
1 parent 844126e commit 9b6015c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,13 @@ jobs:
- run:
name: Start Minikube Cluster
command: |
sudo -E minikube start --vm-driver=none --cpus 2 --memory 4096 --kubernetes-version=$K8S_VERSION
sudo -E minikube start \
--extra-config=kubeadm.ignore-preflight-errors=NumCPU \
--extra-config=kubeadm.ignore-preflight-errors=RSRC_INSUFFICIENT_CORES \
--kubernetes-version=$K8S_VERSION \
--vm-driver=none \
--cpus 2 \
--memory 4096
sudo chown -R circleci:circleci /home/circleci/.kube /home/circleci/.minikube /etc/kubernetes
# Work around annoying issue on recent minikubes where namespaces take a long time to generate default service account
kubectl create namespace container-default
Expand Down
12 changes: 6 additions & 6 deletions core/src/plugins/kubernetes/kubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,20 @@ export const kubectlSpec: PluginToolSpec = {
{
platform: "darwin",
architecture: "amd64",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/darwin/amd64/kubectl",
sha256: "a81b23abe67e70f8395ff7a3659bea6610fba98cda1126ef19e0a995f0075d54",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/darwin/amd64/kubectl",
sha256: "c4b120ab1284222afbc15f28e4e7d8dfcfc3ad2435bd17e5bfec62e17036623c",
},
{
platform: "linux",
architecture: "amd64",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl",
sha256: "4fc8a7024ef17b907820890f11ba7e59a6a578fa91ea593ce8e58b3260f7fb88",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/linux/amd64/kubectl",
sha256: "2583b1c9fbfc5443a722fb04cf0cc83df18e45880a2cf1f6b52d9f595c5beb88",
},
{
platform: "windows",
architecture: "amd64",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/windows/amd64/kubectl.exe",
sha256: "a7e4e527735f5bc49ad80b92f4a9d3bb6aebd129f9a708baac80465ebc33a9bc",
url: "https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/windows/amd64/kubectl.exe",
sha256: "d8731ac97166c506441e5d2f69e31d57356983ae15602ba12cc16981862bfdef",
},
],
}

0 comments on commit 9b6015c

Please sign in to comment.