kubectl - error: You must be logged in to the server

烈酒焚心 提交于 2019-12-08 02:27:29

问题


I have configured OIDC with k8s installed using kubeadm. After the configuration, when I run the command kubectl --user=name@gmail.com get nodes I get

error: You must be logged in to the server (the server has asked for the client to provide credentials (get nodes))

Can someone please help me with this?


回答1:


I use kubectl --username=name@gmail.com get nodes and it works. Earlier I was using the parameter --user instead of --username.




回答2:


Your password is probably missing.



来源:https://stackoverflow.com/questions/45540139/kubectl-error-you-must-be-logged-in-to-the-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!