karpenter-provider-aws: Missing SQS permission in starter cloudformation
Version
Karpenter Version: v0.22.0
Kubernetes Version: v1.23.14-eks-ffeb93d
Expected Behavior
Successfully join SQL queue
Actual Behavior
Failure to join SQS due to missing permission
Steps to Reproduce the Problem
Follow the steps provided in the guide at https://karpenter.sh/v0.22.0/getting-started/getting-started-with-eksctl/
curl -fsSL https://karpenter.sh/"${KARPENTER_VERSION}"/getting-started/getting-started-with-eksctl/cloudformation.yaml > $TEMPOUT \
&& aws cloudformation deploy \
--stack-name "Karpenter-${CLUSTER_NAME}" \
--template-file "${TEMPOUT}" \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides "ClusterName=${CLUSTER_NAME}"
Can be fixed by attaching SQS permissions to the created role
Resource Specs and Logs
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave “+1” or “me too” comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 15 (4 by maintainers)
If you gave value to interruptionQueue you will see this error. Comment that line on values.yaml or do not set. Default is disabled.
FYI: This value is used for spot instances on aws. AWS can take your spot instance in 2 minutes if aws demands that server. So karpenter capture that AWS demand request and handle that. If you are using managed nodes it is not needed i guess.
To many people who are exposed to this error, 0.37.0 version Alternatively, if you are upgrading to the latest version It is possible that many values have changed.
When using AWS Provider Do not use settings.aws. The queue should not use url. Do not use arn. Use the interrupt queue as the name.
Our time is precious.
Same issue here, I’m trying to apply karpenter module into my existing EKS cluster.
@dchien234 I have landed in same situation , any solution ?
I too am experiencing the same problem.
--set "serviceAccount.annotations.eks\.amazonaws\.com/role-arn=${KARPENTER_IAM_ROLE_ARN}" \This doesn’t solve it either.
I managed to solve it by adding the service account arn:
unfortunately no 😞
Same here. After restarting the deployment, the issue still persists. Were you able to fix it? @dchien234
Bump into this issue today, may I know what permissions need need to be set on the
terraform-aws-modules/eks/aws//modules/karpentermodule ?I’m going to close this since I think this is known that restart is required for permissions refresh and existing permissions are enough on a new cluster.
@sansmoraxz I just installed fresh from the getting-started guide without any modifications and hadn’t seen any issues.
Can you show which IAM permission it needs? The default policy only allows it on specific queues, so maybe you’ve inputted a queue that is different than the one allowed in the IAM document?
Here’s the IAM snippet used