kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.16k stars 4.87k forks source link

Having an issue with minikube start on MacOS #8862

Closed petebirk closed 4 years ago

petebirk commented 4 years ago

Trying to setup minikube following steps here: https://backstage.forgerock.com/docs/forgeops/6.5/devops-guide-minikube/#devops-guide-minikube.

The start command fails and I think it's related to the "Unauthorized" you see below. If I do anything with kubectl, it gives me an error "You must be logged in to the server (Unauthorized)". In the minikube logs, there is info about an expired certificate, but not sure what to do about it. . I have uninstalled minikube and kubectl and reinstalled to no avail. Thanks for any assistance on this.

Using the following start command (took about 10 minutes to complete):

Peters-MacBook-Pro:~ peter$ minikube start β€”memory=8192 --cpus=2 -v=7 --disk-size=40g --vm-driver=virtualbox --bootstrapper kubeadm --kubernetes-version=1.17.4 πŸ˜„ minikube v1.12.1 on Darwin 10.14.6 ✨ Using the virtualbox driver based on user configuration πŸ‘ Starting control plane node minikube in cluster minikube πŸ”₯ Creating virtualbox VM (CPUs=2, Memory=4000MB, Disk=40960MB) ... 🐳 Preparing Kubernetes v1.17.4 on Docker 19.03.12 ... πŸ”Ž Verifying Kubernetes components... ❗ Enabling 'default-storageclass' returned an error: running callbacks: [Error making standard the default storage class: Error listing StorageClasses: Unauthorized] 🌟 Enabled addons: default-storageclass, storage-provisioner

πŸ’£ failed to start node: startup failed: wait 6m0s for node: wait for healthy API server: controlPlane never updated to v1.17.4

😿 minikube is exiting due to an error. If the above message is not useful, open an issue: πŸ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

I've attached the output of minikube logs.

minikube-logs.log

Here are a few more commands..

Peters-MacBook-Pro:Downloads peter$ minikube status minikube type: Control Plane host: Running kubelet: Running apiserver: Running kubeconfig: Configured

Peters-MacBook-Pro:Downloads peter$ minikube kubectl cluster-info

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. error: You must be logged in to the server (Unauthorized)

Peters-MacBook-Pro:bin peter$ kubectl cluster-info dump error: You must be logged in to the server (Unauthorized)

Use "minikube --help" for more information about a given command. Peters-MacBook-Pro:Downloads peter$ minikube dashboard πŸ”Œ Enabling dashboard ... πŸ€” Verifying dashboard health ... <hangs right here for about 10 minutes> dashboard service is not running: Temporary Error: Error getting service kubernetes-dashboard: Unauthorized

petebirk commented 4 years ago

This can be closed.. I had upgraded from an older version of minikube recently.. The issue documented below fixed the problem. I ran "minikube delete --all --purge" and that fixed it. Thanks!

https://github.com/kubernetes/minikube/issues/8844

priyawadhwa commented 4 years ago

@petebirk glad your issue is fixed! I'll go ahead and close this issue.