- Newest
- Most votes
- Most comments
In the end, the guide on restoring access to the cluster helped me eks-api-recover-cluster-access, but I want to understand why I initially had no access to it after its creation.
Hello, Glad to hear you were able to restore access. The initial problem may have been created by a variety of issues, such as:
-
IAM Role Mismatch When you create an EKS cluster using Terraform, the IAM role used to create the cluster is automatically granted full access to it. However, if you're using a different IAM user or role to access the cluster afterwards, you may encounter permission issues
-
aws-auth ConfigMap The aws-auth ConfigMap is crucial for mapping IAM roles to Kubernetes RBAC permissions. If this ConfigMap is not properly configured, you may be unable to access the cluster
-
Kubeconfig File An outdated or incorrectly configured kubeconfig file can lead to authentication issues. The kubeconfig file needs to be updated with the correct cluster information and credentials
-
Authentication Mode EKS clusters can be configured with different authentication modes. If your cluster is set to use API server authentication only, you may need to update it to use both API and ConfigMap authentication
Which one was the cause in your case it is difficult to say without knowing more, maybe the way you were able to restore access can provide some hints on the specific cause. Best,
Relevant content
- asked 10 months ago
- Accepted Answerasked 2 years ago
- asked 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 months ago