EKS Deployment fails with Unauthorized Error #62
-
|
Hi, We are currently deploying EKS clusters on Dev and Prod following https://docs.cloudposse.com/layers/eks/deploy-clusters/ While running the eks workflows, we are getting errors with the eks/storage-class I think this is caused by not having access to EKS itself. I tried kubectl commands after configuring my kubeconfig on AWS cloudshell and I got this response: Note: This cluster in particular was provisioned with public endpoints so I can test AUTHZ from cloudshell This issue can be reproduced on both Dev and Prod platform accounts. Are we missing any configuration that allow us to get access to the kube api? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
More context information:
|
Beta Was this translation helpful? Give feedback.
-
|
EKS connectivity can be quite tedious to debug. I spent quite a bit of time debugging cluster connectivity, so we added these tips. Please take a look and let us know if it helps: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for that. The network layer is working fine. We are also using AWS VPN Client and I tested it against a bastion host. The issue is with EKS Authorization (user is logged in) when applying K8s resources. In this case in particular, when its trying to create storage classes. This is the debug info I tried tracking down the STS Token to understand why that session doesnt have access to the cluster. Seems that its using the I went ahead and I've created a new IAM access entry on the EKS Cluster for the OrganizationAccountAccessRole with 3 policies attached:
I can confirm that the issue is there, as |
Beta Was this translation helpful? Give feedback.
-
|
After additional testing, I can confirm that I can query K8S Resources with However, if I try to apply eks/resources (or even to create a k8s cluster following the eks workflow) I get assume_role issues: These issues are gone when using |
Beta Was this translation helpful? Give feedback.

Thanks for that. The network layer is working fine. We are also using AWS VPN Client and I tested it against a bastion host.
The issue is with EKS Authorization (user is logged in) when applying K8s resources. In this case in particular, when its trying to create storage classes.
This is the debug info