-
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
kubeadm: "failure loading ca certificate: the certificate is not valid yet" #2749
Comments
Same issue on macOS Sierra. |
Same here. If you delete and recreate the minikube, it's saying that the apiserver certificate is wrong. I'm using VirtualBox. The vm driver is not the cause. I can confirm that this issue does not occur in v0.25.2, starts perfectly.
|
same issue here |
Experiencing the same issue, Linux with kvm2 driver, minikube v0.26.1. I started getting this error when trying to start my previously-working cluster:
After trying to delete and recreate the cluster, I get the same issue as OP. After getting the "the certificate is not yet valid" error, If I try to start the vm again without deleting the vm first I get the same error that I was having before I deleted the cluster. |
On Windows 10 version 1803 (OS Build 17134.48) with Virtualbox 5.2.12 (also 5.2.6) and Minikube 0.27.0 (also 0.26.1) I get the "certificate is not yet valid" error during a Comparing the host time to the VM time, I see a 3 second difference:
Comparing the cert validity time to the cert file modified time I see the same 3 second difference:
Update: after leaving the host running for a few days without reboots, the clock discrepancy between the host and newly created VMs has reduced to subsecond and the "certificate is not yet valid" error is no longer encountered. Since the clock discrepancy is between the host and a new VM (as opposed to existing VMs) and since it has impacted users with Virtualbox and users with Hyper-V, implementing a change to be less sensitive to time variations during |
If I run
Note the above output is with minikube log level 99. If I run the supposedly failing command directly with
Trying However,
Meanwhile the storage-provisioner and kubernetes-dashboard are both in a crash loop:
For reference, the
|
v0.27 is working for me on mac osx |
I'm getting |
@mbotmcc @aseempatni - see the linked pull request above, it looks like a fix is identified and ready to merge - but isn't merged yet. I don't think 0.27 would have anything other than intermittent success |
@aseempatni I got this error too but after I deleted everything in .minikube and downloaded everything again it worked |
Getting the same issue.
Workaround:
kubectl can now connect to minikube. Still have no idea what is actually going on. |
I first installed v0.27.0 on MacOS 10.11.6 El Capitan. To make it work this is what I did:
Thanks @AmazingTurtle for referring to a version that actually works! |
The PR with the fix should be in 0.28.0, so this should be fixed now. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Fixed in 0.28.0. |
Reopening because we're seeing this issue in our CI environment, although it's only showing up in VirtualBox at the moment. The root cause is effectively that time in the VM is lagging compared to the host. example:
|
Doing some reading, vbox doesn't sync time on VM start: https://vilimpoc.org/blog/2014/02/09/better-time-synchronization-with-virtualbox-guest-additions/ I'm working on a PR to configure this. |
Please provide the following details:
Environment:
Minikube version (use
minikube version
): 0.26.1cat ~/.minikube/machines/minikube/config.json | grep DriverName
): hypervcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): file://C:/Users/kiere/.minikube/cache/iso/minikube-v0.26.0.isoWhat happened:
What you expected to happen:
Minikube VM to start successfully.
How to reproduce it (as minimally and precisely as possible):
Follow the exact steps here: https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c
Output of
minikube logs
(if applicable):Anything else do we need to know:
Would be great to understand if the "WARNING Swap" is relevant/related. I'm unsure if it's referring to the host OS, or VM OS - or how to remedy?
The text was updated successfully, but these errors were encountered: