cdk-eks-karpenter icon indicating copy to clipboard operation
cdk-eks-karpenter copied to clipboard

Install karpenter construct using python aws eks v2 alpha

Open lkr2des opened this issue 9 months ago • 1 comments

Hi

I am trying to add karpenter to existing eks cluster created using aws_cdk.aws_eks_v2_alpha in python but the cluster property expects a return type of Cluster It gives the following error TypeError: type of argument cluster must be aws_cdk.aws_eks.Cluster; got aws_cdk.aws_eks_v2_alpha.Cluster instead Is there a workaround or fix that is available.

Thanks

lkr2des avatar Apr 16 '25 13:04 lkr2des

There is currently no support for the v2 alpha module for EKS in CDK. While the methods from Cluster that we do depend on seems to exist in v2, it is not yet tested nor supported.

You could try provisioning the cluster using v2, and then use fromClusterAttributes() from Cluster v1 to import a reference to that cluster and then install Karpenter using this construct onto that. Again this is not something that I have tested.

andskli avatar Apr 16 '25 13:04 andskli