I am not able to create the eks cluster on EKS playground. Getting the following error,
User: arn:aws:iam::424837873756:user/kk_labs_user_565201 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::424837873756:role/fj because no identity-based policy allows the iam:PassRole action
I have followed the same git page to configure it. PLz help.
Did you ensure that there are two subnets available for the selected Default VPC, and none of them are from us-east-1e?
Please do follow the instructions in the guide and do not change/update any values.
I am getting different error while joining the nodes,
Oct 30 11:31:19 ip-172-31-64-79 kubelet: I1030 11:31:19.291620 2414 kubelet_node_status.go:668] “Recording event message for node” node=“ip-172-31-64-79.ec2.internal” event=“NodeHasSufficientPID”
Oct 30 11:31:19 ip-172-31-64-79 kubelet: I1030 11:31:19.291646 2414 kubelet_node_status.go:70] “Attempting to register node” node=“ip-172-31-64-79.ec2.internal”
Oct 30 11:31:19 ip-172-31-64-79 kubelet: E1030 11:31:19.332470 2414 controller.go:144] failed to ensure lease exists, will retry in 7s, error: Unauthorized
Oct 30 11:31:19 ip-172-31-64-79 kubelet: E1030 11:31:19.332833 2414 kubelet_node_status.go:92] “Unable to register node with API server” err=“Unauthorized” node=“ip-172-31-64-79.ec2.internal”
Oct 30 11:31:19 ip-172-31-64-79 kubelet: I1030 11:31:19.557140 2414 csi_plugin.go:1021] Failed to contact API server when waiting for CSINode publishing: Unauthorized
Oct 30 11:31:20 ip-172-31-64-79 kubelet: I1030 11:31:20.557875 2414 csi_plugin.go:1021] Failed to contact API server when waiting for CSINode publishing: Unauthorized
Oct 30 11:31:20 ip-172-31-64-79 kubelet: W1030 11:31:20.719346 2414 reflector.go:324] vendor/k8s.io/client-go/informers/factory.go:134: failed to list *v1.CSIDriver: Unauthorized
Oct 30 11:31:20 ip-172-31-64-79 kubelet: E1030 11:31:20.719375 2414 reflector.go:138] vendor/k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: Unauthorized
I am wasting my time to build the environment only. I request KODEKLOUD Team add single Cloudformation template to launch the cluster.
Please share more detailed steps of what you’ve done so we can help you check it.
In case you’d like to use IaC to quickly provision the EKS cluster in the playground, we have a detailed guide using Terraform. It includes all the manual steps as code, so you just need to follow the instructions and run a few commands to provision the cluster properly.
Hey! I’ve run into the same issue before on the KodeKloud EKS playground. It’s not your setup that’s wrong, it’s just that the IAM permissions in the playground environment are restricted. The error iam:PassRole is not authorized means your temporary IAM user doesn’t have the rights to pass the role needed for the EKS cluster creation.
Basically, the playground doesn’t let you attach or use certain IAM roles for EKS because of AWS account limitations. You can follow all the steps from the GitHub repo perfectly, but that specific step fails because the role assignment requires higher permissions.
If you just want to practice creating an EKS cluster, I’d recommend either using your own AWS Free Tier account or the KodeKloud labs specifically made for EKS (they have preconfigured IAM permissions). On the KodeKloud playground, though, you won’t be able to bypass that permission issue - it’s locked down.