Can I safely delete the aws-auth ConfigMap when migrating to the "API" auth mode in EKS?

0

This doc: https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html has a warning regarding managed node groups/fargate profiles when migrating from aws-auth ConfigMap to access entries

Important

Don't remove existing aws-auth ConfigMap entries that were created by Amazon EKS when you added a managed node group or a Fargate profile to your cluster. If you remove entries that Amazon EKS created in the ConfigMap, your cluster won't function properly. You can however, remove any entries for self-managed node groups after you've created access entries for them.

However, as far as I understood, when the cluster is in "API" auth mode, the ConfigMap is no longer of any use

It is safe to delete after making the switch?

NIGo
已提問 2 個月前檢視次數 261 次
1 個回答
3
已接受的答案

Yes, if you are migrating to the "API" authentication mode in Amazon EKS, you can safely delete the aws-auth ConfigMap after completing the migration.

In the "API" authentication mode, authentication is handled through IAM roles for service accounts (IRSA), and the aws-auth ConfigMap is no longer used to map IAM roles to Kubernetes users or groups. Instead, Kubernetes service accounts are associated directly with IAM roles, and IAM permissions are managed through Kubernetes RBAC (Role-Based Access Control) policies. https://aws.github.io/aws-eks-best-practices/security/docs/iam/

***Once you have migrated to the "API" authentication mode and verified that all your service accounts are correctly associated with IAM roles, you can safely delete the aws-auth ConfigMap. It is no longer needed for authentication purposes in this mode. However, ensure that you have thoroughly tested your cluster after the migration to confirm that all your workloads and applications are functioning as expected with the new authentication setup before deleting the ConfigMap *****

Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 22 天前
profile picture
專家
已審閱 25 天前
  • The config map can be safely deleted after moving to API mode. But access management and IRSA are completely unrelated. Access management is for external IAM identities to get access inside the cluster. IRSA is for service account identities inside the cluster to get access to AWS. In API mode, access entries are stored in the EKS backend, nothing is inside the cluster.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南