All-Things-Docker-and-Kubernetes

Amazon EKS - IAM and RBAC

Kubernetes is deeply integrated with IAM and RBAC.

We can assign RBAC directly to IAM entities and this will allow them access to the Kubernetes clusters.

Worker Nodes

When create a worker node, it will join the cluster and be assigned an IAM role that authorize in RBAC to let them join:

This can be seen in the Configmap. To edit the Configmap:

$ kubectl edit -n kube-system configmap/aws-auth 

IAM Users

An example of users that we can create:

We can also assign a more fine-grained policy for the user. To learn more, check out this lab.

You can also take a look at Using RBAC Authorization.


Back to first page