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

2019-05-22 16:59发布

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?

2条回答
时光不老,我们不散
2楼-- · 2019-05-22 17:07

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

查看更多
孤傲高冷的网名
3楼-- · 2019-05-22 17:24

Your password is probably missing.

查看更多
登录 后发表回答