Open sadath-12 opened 1 week ago
We are facing same issue as well. Would be great to get this addressed
this doesn't seem to be a question about this module, nor does it contain a reproduction. I would suggest looking at our Karpenter example to compare and contrast with what you are trying to create
@bryantbiggs , the example works for me . Is there any key parameter that has to be passed so karpenter controller pod assume the roles and policies in my case ? . since I already tried comparing and cant find solution
I mean there are a number of factors that need to be considered - the best bet is to compare what we have provided since its a full working solution, all the way down to the Karpenter nodepool and nodeclass
@bryantbiggs the terraform code is quite complex to me . I am able to run the terraform-aws-eks/examples/karpenter/main.tf
and it works as expected ..
and same terraform module configuration I used with my existing clusters module . I did compare few simple stuffs such as providing tags for subnets and nodegroups which I did . Later I am not sure what to do . To make it work the only workaround for me now is to attach admin policy to nodegroup . So I am assuming something related to pod-identity there is issue
we don't provide guidance on custom implementations, we can only provide support and guidance on what we provide. I'm not sure why you are creating your own custom implementation if its too complex for you all to handle, but perhaps just using the EKS module that we provide would better suit you since it does work (as you have pointed out)
Understood @bryantbiggs . I would inspect the implementation you have , any pointers on what specific things to look at for the case where pod is not getting permissions ?
Description
I am trying to integrate karpenter module into my existing
aws_eks_cluster
module but the cluster policies and roles karpenter module creates are not getting attached to my existing cluster and the pod fails giving issues such sqs permission , cant list images .. etc . I see those roles are created in my console but not used up by pods , attaching a admin policy to worker node makes it work .So the question is how can I tell karpenter module to attach those roles and polcies to my existing cluster since I cant find such an example
β I have searched the open/closed issues and my issue is not listed.
Versions
Module version : 20.24.0
Terraform version: Terraform v1.9.5
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
Create the cluster following the steps
Then pass the cluster name to karpenter module
Expected behavior
Karpenter pod up and running + readiness of nodepools and ec2nodeclass
Actual behavior
karpenter pod crashes and gives permissions related errors
Terminal Output Screenshot(s)
Additional context