Home > Back-end >  add karpenter to eksctl config file, but no upgrade
add karpenter to eksctl config file, but no upgrade

Time:06-10

I have created the EKS cluster.

Then follow the document (https://eksctl.io/usage/eksctl-karpenter/) to add karpenter support,

 metadata:
   name: eks-dev
   region: ap-southeast-2
   version: "1.22"
   tags:
     karpenter.sh/discovery: eks-dev

 iam:
   withOIDC: true # required

 karpenter:
   version: '0.9.0'

 managedNodeGroups:
 - name: spot

but when I upgrade it, nothing happen.

$ eksctl upgrade cluster -f eks-dev.yaml --approve
2022-06-07 21:08:25 [!]  NOTE: cluster VPC (subnets, routing & NAT Gateway) configuration changes are not yet implemented
2022-06-07 21:08:25 [ℹ]  no cluster version update required
2022-06-07 21:08:26 [ℹ]  re-building cluster stack "eksctl-eks-dev-cluster"
2022-06-07 21:08:26 [✔]  all resources in cluster stack "eksctl-eks-dev-cluster" are up-to-date
2022-06-07 21:08:26 [ℹ]  checking security group configuration for all nodegroups
2022-06-07 21:08:26 [ℹ]  all nodegroups have up-to-date cloudformation templates
$

The note is about to igonre the change for VPC, but Karpenter change is not related to vpc.

So how can I fix this issue?

CodePudding user response:

Support for karpenter only applies to new cluster, it has no effect to existing cluster. You can manually install karpenter on existing cluster following this guide.

  • Related