kubectl错误:“您必须登录到服务器(服务器已要求客户端提供凭据)" [英] kubectl error: "You must be logged in to the server (the server has asked for the client to provide credentials)"

查看:2027
本文介绍了kubectl错误:“您必须登录到服务器(服务器已要求客户端提供凭据)"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行以下命令并出现错误:

I'm running the following command and getting an error:

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

这是怎么回事?

推荐答案

您必须运行:

$ gcloud container clusters get-credentials [cluster-name]

文档此处.

这篇关于kubectl错误:“您必须登录到服务器(服务器已要求客户端提供凭据)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆