minikube: error: kubectl You must be logged in to the server (Unauthorized) - pointed to root users certs
So, I installed minikube version minikube version: v1.1.0 on Ubuntu 18.04 and having some trouble querying the resources using kubectl.
Below are some warnings that I get while starting minikube, so minikube start returns
😄 minikube v1.1.0 on linux (amd64)
🔥 Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
2019/05/25 01:11:28 No matching credentials were found, falling back on anonymous
2019/05/25 01:11:28 No matching credentials were found, falling back on anonymous
2019/05/25 01:11:28 No matching credentials were found, falling back on anonymous
🐳 Configuring environment for Kubernetes v1.14.2 on Docker 18.09.6
🚜 Pulling images ...
🚀 Launching Kubernetes ...
⌛ Verifying: apiserver proxy etcd scheduler controller dns
🏄 Done! kubectl is now configured to use "minikube"
and if I run kubectl get pods below is the error that I get
error: You must be logged in to the server (Unauthorized)
below are some of the line of minikube logs
==> coredns <==
.:53
2019-05-24T19:47:52.715Z [INFO] CoreDNS-1.3.1
2019-05-24T19:47:52.715Z [INFO] linux/amd64, go1.11.4, 6b56a9c
CoreDNS-1.3.1
linux/amd64, go1.11.4, 6b56a9c
2019-05-24T19:47:52.715Z [INFO] plugin/reload: Running configuration MD5 = 599b9eb76b8c147408aed6a0bbe0f669
==> dmesg <==
[ +5.001154] hpet1: lost 318 rtc interrupts
[ +5.005430] hpet1: lost 318 rtc interrupts
[ +5.002566] hpet1: lost 318 rtc interrupts
[ +5.004743] hpet1: lost 319 rtc interrupts
[ +5.004189] hpet1: lost 318 rtc interrupts
[ +5.008405] hpet1: lost 318 rtc interrupts
[ +5.000442] hpet1: lost 318 rtc interrupts
[ +5.003811] hpet1: lost 319 rtc interrupts
[ +5.004466] hpet1: lost 318 rtc interrupts
[ +5.005419] hpet1: lost 318 rtc interrupts
[May24 20:17] hpet1: lost 318 rtc interrupts
[ +4.997748] hpet1: lost 318 rtc interrupts
[ +5.001435] hpet1: lost 318 rtc interrupts
[ +5.004691] hpet1: lost 319 rtc interrupts
[ +5.004612] hpet1: lost 318 rtc interrupts
[ +5.008309] hpet1: lost 319 rtc interrupts
[ +5.000616] hpet1: lost 319 rtc interrupts
[ +4.998328] hpet1: lost 317 rtc interrupts
[ +4.999302] hpet1: lost 318 rtc interrupts
[ +5.006968] hpet1: lost 319 rtc interrupts
[ +5.006778] hpet1: lost 318 rtc interrupts
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 29 (8 by maintainers)
works for me after:
minikube v1.12.1 kubectl v1.18.3