Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with latest minikube #59

Closed
benmoss opened this issue Nov 28, 2018 · 1 comment · Fixed by #65
Closed

Doesn't work with latest minikube #59

benmoss opened this issue Nov 28, 2018 · 1 comment · Fixed by #65

Comments

@benmoss
Copy link

benmoss commented Nov 28, 2018

It looks like minikube v0.30.0 isn't a recent enough version of the k8s API to work with the cluster API libraries being used here. Specifically when following the directions in the README, you'll hit this error when running clustectl create cluster:

F1128 14:25:40.581898    8057 create_cluster.go:65] unable to update bootstrap cluster endpoint: unable to update cluster endpoint: the server could not find the requested resource (put clusters.cluster.k8s.io test1-b70jo)

It looks like the code here is what fails. The cluster exists, just can't be updated with this API.

minikube v0.30.0 is running kubernetes v1.10.0. I was able to get past this bug by using https://github.com/kubernetes-sigs/kubeadm-dind-cluster and v1.12 instead.

@oxddr
Copy link
Contributor

oxddr commented Nov 30, 2018

I had the same problem. AFAIK the root cause it that Kubernetes in versions older than v1.12 doesn't support sub-resources in CRDs, at least not out of the box.

My workaround was to explicitly state the version of Kubernetes to use by minikube - this can be done by adding a flag to clusterctl invocation --minikube="kubernetes-version=v1.12.0". I'll create a PR to make this explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants