minikube: certificate signed by unknown authority
I was using minikube, then I started using an AWS cluster then switched back to minikube and now I get this 😦
➜ minikube git:(master) kubectl cluster-info
error: couldn't read version from server: Get https://192.168.99.100:443/api: x509: certificate signed by unknown authority
I don’t really understand what’s going on here?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29 (14 by maintainers)
Hello
I have the very similar issue like yissachar had ==> missing the apiserver.crt in the minikube VM. I do not have the localkube folder too.
My setup: Win 10 home host, Virtualbox, Minikube.exe, Kubectl.exe, Docker Toolbox - which also create “default” VM in Virtualbox.
I need this setup for learning. I wanna do this ==> https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/#create-a-minikube-cluster
I cannot manage to work together the ==> Docker Toolbox + Minikube + Kubectl with Virtualbox from Win 10 Home.
Thank you very much for any help.
Looking at this now.
The path /var/lib/localkube/certs/apiserver.crt refers to the bits inside the VM; not on your laptop.
One other idea, could you try:
make clean make out/minikube
It’s possible you have a stale build of localkube which is putting the certs in a different path in the VM.