Install karpenter construct using python aws eks v2 alpha
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
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.