简体   繁体   中英

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. 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 eks list-clusters --
{
    "clusters": [
        "t"
    ]
}

and after trying with 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 )

So only the user that created a cluster has access to it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM