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

前端 未结 2 633
梦谈多话
梦谈多话 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

    I got to know the answer. Basically on the heptio server side component, the static mapping for system:master is done under /etc/kubernetes/aws-iam-authenticator/ (https://github.com/kubernetes-sigs/aws-iam-authenticator#3-configure-your-api-server-to-talk-to-the-server) which is mounted into the heptio authenticator pod. Since you do not have access to this in EKS, you cant see it. However if you do invoke the /authenticate yourself with the pre-signed request, you should get the TokenReviewStatus response from heptio authenticator showing the mapping for ARN (who created the cluster) to system:master group!

提交回复
热议问题