You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Karpenter addon, the nodes provisioned by Karpenter fail to join the cluster due to missing essential IAM policies. The node role created by the module doesn't include the basic EKS worker node policies by default, which are required for:
Authenticate with the EKS control plane
Configure CNI networking
Pull container images from ECR
✋ I have searched the open/closed issues and my issue is not listed.
Expected behaviour
Nodes provisioned by Karpenter should automatically join the cluster with the necessary permissions to:
Authenticate with the EKS control plane
Configure CNI networking
Pull container images from ECR
Actual behaviour
Nodes fail to join the cluster with permission errors. The issue can be fixed by manually adding the required policies:
{"level":"error","time":"2024-12-08T21:42:15.000Z","logger":"controller.nodeclaim","message":"An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation. User: arn:aws:sts::559050245391:assumed-role/karpenter-spot-and-karpenter/i-050359de8285690aa is not authorized to perform: ec2:DescribeInstances"}
These policies should be included by default as they are essential for any EKS worker node to function properly.
Additional context
This is similar to how the EKS module includes these policies by default for managed node groups. The Karpenter module should follow the same pattern to ensure nodes can join the cluster out of the box.
Suggested fix: Add these three policies as defaults in the module's main.tf, while still allowing users to override or add additional policies through the node_iam_policy_arns variable.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
Description
When using the Karpenter addon, the nodes provisioned by Karpenter fail to join the cluster due to missing essential IAM policies. The node role created by the module doesn't include the basic EKS worker node policies by default, which are required for:
Expected behaviour
Nodes provisioned by Karpenter should automatically join the cluster with the necessary permissions to:
Actual behaviour
Nodes fail to join the cluster with permission errors. The issue can be fixed by manually adding the required policies:
Error from Karpenter logs:
These policies should be included by default as they are essential for any EKS worker node to function properly.
Additional context
This is similar to how the EKS module includes these policies by default for managed node groups. The Karpenter module should follow the same pattern to ensure nodes can join the cluster out of the box.
Suggested fix: Add these three policies as defaults in the module's
main.tf
, while still allowing users to override or add additional policies through thenode_iam_policy_arns
variable.The text was updated successfully, but these errors were encountered: