-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
minikube fails with v1.13.0: kubeadm commands need to be updated #3460
Comments
realised there was a problem with my minikube where the above upgrade did not upgrade the iso to v0.31.0 iso as well. so manually downloaded the iso and moved into cache directory. and still the same error. Output for minikube iso - "Boot2DockerURL": "file:///Users/Th3G4mbl3r/.minikube/cache/iso/minikube-v0.31.0.iso", Error seen is still exactly the same. So basically need to fix the kubeadm commands to follow the correct syntax for v1.13.0 onwards. Looking through minikube source tree, shows /pkg/minikube/bootstrapper/kubeadm/templates.go has the command templated in. This is where the fix will need to be made. |
Marking this as high priority - since 1.13.x should be made the default ASAP. Thanks for the tip on kubeadm init vs kubeadm alpha. |
CENTOS7 [root@localhost ~]# minikube start --kubernetes-version v1.13.0
|
I got exactly he same on the same setup |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Please provide the following details:
Environment:
Minikube version (use
minikube version
): minikube version: v0.31.0cat ~/.minikube/machines/minikube/config.json | grep DriverName
): "DriverName": "virtualbox"cat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): "Boot2DockerURL": "file:///Users/Th3G4mbl3r/.minikube/cache/iso/minikube-v0.30.0.iso"Using curl.
Minikube: Upgraded from 0.30.0 to 0.31.0 using the following command: curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.31.0/minikube-darwin-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube
Kubectl: Installed using curl.
kubectl version: Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"darwin/amd64"}
What happened: minikube cluster refuses to start. Errors out during kubeadm steps. Error message as follows:
"Machine exists, restarting cluster components...
E1216 14:12:56.177300 3297 start.go:348] Error restarting cluster: running cmd:
sudo kubeadm alpha phase certs all --config /var/lib/kubeadm.yaml &&
sudo /usr/bin/kubeadm alpha phase kubeconfig all --config /var/lib/kubeadm.yaml &&
sudo /usr/bin/kubeadm alpha phase controlplane all --config /var/lib/kubeadm.yaml &&
sudo /usr/bin/kubeadm alpha phase etcd local --config /var/lib/kubeadm.yaml
: Process exited with status 1"
What you expected to happen: Cluster to start successfully.
How to reproduce it (as minimally and precisely as possible): minikube start --kubernetes-version v1.13.0
Output of
minikube logs
(if applicable):Anything else do we need to know: The error seems to be because the command being issues at this step to initialise the kubernetes control is broken. In version 1.13.0, we need to use
kubeadm init phase
instead ofkubeadm alpha phase
.Also, the switch controlplane in the 3rd command needs to change to control-plane.
The text was updated successfully, but these errors were encountered: