Skip to content

Latest commit

 

History

History
executable file
·
50 lines (28 loc) · 1.24 KB

052-EKS-IAM-and-RBAC.md

File metadata and controls

executable file
·
50 lines (28 loc) · 1.24 KB

Amazon EKS - IAM and RBAC

Kubernetes is deeply integrated with IAM and RBAC.

  • Authentication is managed by IAM
  • Authorization is natively managed by Kubernetes 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:

  • system:bootstrappers
  • system:nodes

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:

  • cluster admin - able to do all administrative operations on a cluster-level

  • read-only user - limited to a dedicated namespace

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