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

minikube fails with v1.13.0: kubeadm commands need to be updated #3460

Closed
Th3G4mbl3r opened this issue Dec 16, 2018 · 4 comments
Closed

minikube fails with v1.13.0: kubeadm commands need to be updated #3460

Th3G4mbl3r opened this issue Dec 16, 2018 · 4 comments
Assignees
Labels
area/code-deps Code dependencies (guest-vm deps belong in guest-vm)

Comments

@Th3G4mbl3r
Copy link

Th3G4mbl3r commented Dec 16, 2018

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.0

  • OS (e.g. from /etc/os-release): Mac OS Mojave 10.14.1 (18B75)
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): "DriverName": "virtualbox"
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): "Boot2DockerURL": "file:///Users/Th3G4mbl3r/.minikube/cache/iso/minikube-v0.30.0.iso"
  • Install tools:

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"}

  • Others:

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 of kubeadm alpha phase.

Also, the switch controlplane in the 3rd command needs to change to control-plane.

@Th3G4mbl3r
Copy link
Author

Th3G4mbl3r commented Dec 16, 2018

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.

@tstromberg
Copy link
Contributor

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.

@tstromberg tstromberg changed the title minikube fails to start with kubernetes v1.13.0 minikube fails with v1.13.0: kubeadm commands need to be updated Dec 18, 2018
@marshalslee
Copy link

CENTOS7
minikube 0.30

[root@localhost ~]# minikube start --kubernetes-version v1.13.0
Starting local Kubernetes v1.13.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Downloading kubeadm v1.13.0
Downloading kubelet v1.13.0
E1220 15:31:37.695452 15222 start.go:254] Error updating cluster: downloading binaries: downloading kubeadm: Error downloading kubeadm v1.13.0: failed to download: failed to download to temp file: download failed: 1 error(s) occurred:

  • received invalid status code: 404 (expected 200)

@jgsqware
Copy link

I got exactly he same on the same setup

@tstromberg tstromberg added the area/code-deps Code dependencies (guest-vm deps belong in guest-vm) label Dec 21, 2018
@tstromberg tstromberg self-assigned this Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-deps Code dependencies (guest-vm deps belong in guest-vm)
Projects
None yet
Development

No branches or pull requests

4 participants