[英]couldn't access EKS cluster with kubectl
i just created a cluster(cluster name = t ) with EKS service and wanted to access the cluster with kubectl.我刚刚使用 EKS 服务创建了一个集群(集群名称 = t),并希望使用 kubectl 访问集群。 so after connecting to my aws user and double check the credential and the connection so i checked to cluster via command and got as output:
所以在连接到我的 aws 用户并仔细检查凭据和连接后,我通过命令检查到集群并得到 output:
aws eks list-clusters --
{
"clusters": [
"t"
]
}
and after trying with kubectl:在尝试使用 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)
I created the EKS cluster with root account and tried to acces with another account that's why i couldn't (even that account has AdministratorAccess )我使用 root 帐户创建了 EKS 集群并尝试使用另一个帐户访问,这就是我无法访问的原因(即使该帐户具有 AdministratorAccess )
So only the user that created a cluster has access to it所以只有创建集群的用户才能访问它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.