Steps to reproduce the issue:
got the error. Please see the below log details.
๐ minikube v1.12.2 on Darwin 10.15.5
โจ Automatically selected the docker driver
โ Requested memory allocation (1991MB) is less than the recommended minimum 2000MB. Kubernetes may crash unexpectedly.
โ Your system has 8192MB memory but Docker has only 1991MB. For a better performance increase to at least 3GB.
Docker for Desktop > Settings > Resources > Memory
๐ Starting control plane node minikube in cluster minikube
๐ฅ Creating docker container (CPUs=2, Memory=1991MB) ...
๐ณ Preparing Kubernetes v1.18.3 on Docker 19.03.8 ...
๐ 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.18.3
๐ฟ 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
Full output of minikube start command used, if not already included:
๐ minikube v1.12.2 on Darwin 10.15.5
โจ Automatically selected the docker driver
โ Requested memory allocation (1991MB) is less than the recommended minimum 2000MB. Kubernetes may crash unexpectedly.
โ Your system has 8192MB memory but Docker has only 1991MB. For a better performance increase to at least 3GB.
Docker for Desktop > Settings > Resources > Memory
๐ Starting control plane node minikube in cluster minikube
๐ฅ Creating docker container (CPUs=2, Memory=1991MB) ...
๐ณ Preparing Kubernetes v1.18.3 on Docker 19.03.8 ...
๐ 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.18.3
๐ฟ 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
Optional: Full output of minikube logs command:
==> kernel <==
20:05:15 up 21 min, 0 users, load average: 0.18, 0.24, 0.25
Linux minikube 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 20.04 LTS"
==> kube-apiserver [254ba48dcc19] <==
E0808 19:56:35.440774 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E0808 19:56:35.940585 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E0808 19:56:36.440291 1 authentication.go:53] Unable to authenticate the request due to an error: x509: cer
I had the same problem and it was solved by doing a minikube delete and then minikube start
Hey @apsraj01 did that work for you?
I'd also suggest increasing the memory available to Docker:
โ Your system has 8192MB memory but Docker has only 1991MB. For a better performance increase to at least 3GB.
Docker for Desktop > Settings > Resources > Memory
This is defiantely a bug ! and we need to fix this !
it appears that the kubeadm certificates are expired, I would accept any PR that fixes this problem
@RA489 mentioned that we could do kubeadm renew cert phase.
kubeadm alpha certs check-expiration [flags]Checks expiration for the certificates in the local PKI managed by kubeadm and we can probably include it in minikube status then we can run kubeadm alpha certs renew [flags] automatically for user.
@RA489 that's a good idea, if anyone would be interested in contributing this, feel free to take this issue on.
Most helpful comment
I had the same problem and it was solved by doing a
minikube deleteand thenminikube start