AWS EKS: How is the first user added to system:masters group by EKS

前端 未结 2 631
梦谈多话
梦谈多话 2021-02-04 18:54

EKS documentation says

\"When you create an Amazon EKS cluster, the IAM entity (user or role) is automatically granted system:master permissions in the c

2条回答
  •  有刺的猬
    2021-02-04 19:21

    when you create your cluster, you also install aws-iam-authenticator, and since you created the cluster, I'm sure you have ~/.aws/credentials.

    If you check the aws-auth file you can see it has aws-iam-authenticator in it.

    also you have ~/.kube/config file where you can see that iam-authenticator maps your AWS-PROFILE as a ConfigMap.

    so when over you run kubectl commandit reads kube config file to authenticate with your cluster.

提交回复
热议问题