我已经使用kubeadm安装了安装了k8s的OIDC。
配置后,当我运行命令kubectl --user=name@gmail.com get nodes
时,我得到
error: You must be logged in to the server (the server has asked for the client to provide credentials (get nodes))
有人可以帮我吗?
最佳答案
我使用kubectl --username=name@gmail.com get nodes
,它有效。之前我使用参数--user
而不是--username
。
关于kubernetes - kubectl-错误:您必须登录到服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45540139/