[英]couldn't access EKS cluster with kubectl
我刚刚使用 EKS 服务创建了一个集群(集群名称 = t),并希望使用 kubectl 访问集群。 所以在连接到我的 aws 用户并仔细检查凭据和连接后,我通过命令检查到集群并得到 output:
aws eks list-clusters --
{
"clusters": [
"t"
]
}
在尝试使用 kubectl 之后:
kubectl version --short
Client Version: v1.23.6
error: You must be logged in to the server (the server has asked for the client to provide credentials)
我使用 root 帐户创建了 EKS 集群并尝试使用另一个帐户访问,这就是我无法访问的原因(即使该帐户具有 AdministratorAccess )
所以只有创建集群的用户才能访问它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.