-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Error during eksctl utils update-aws-node when updating cluster from 1.30 to 1.31 (eksctl version 0.202.0) #8163
Comments
I'm also experiencing the same bug eksctl version: 0.202.0 |
I've got the same issue when updating EKS from v1.29 to 1.30 eksctl version: 0.202.0 Update: works fine with the previous eksctl version 0.199.0 |
I too downgraded to 0.201.0 and tried again. Works fine. |
Same issue for me running eksctl version 0.203.0 (At the moment I'm using v0.203 to start the upgrade to v1.32, and then v0.201 to do the service updates) |
Hitting this same issue with eksctl |
@bryantbiggs could it be this change? c143a9c#diff-00df199028ae76ae35f1678fdb2184bf611cfb868abc937e86828e2aa2ee0150R407-R409 |
Looks like the eksctl manifest labels do not match the upstream. So when using the upstream chart to update here, the labels need to be manually modified Or better yet, we remove the self-managed addon usage here and simply use the EKS addon API for this |
What were you trying to accomplish?
After successfully updating EKS cluster from 1.30 to 1.31, trying to update the CNI plugin using eksctl utils update-aws-node --approve .
What happened?
The command failed with below error:
Error: DaemonSet.apps "aws-node" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"aws-vpc-cni", "app.kubernetes.io/name":"aws-node"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
How to reproduce it?
Simply run the command eksctl utils update-aws-node --approve
Logs
2025-01-27 15:40:40 [ℹ] replaced "CustomResourceDefinition.apiextensions.k8s.io/eniconfigs.crd.k8s.amazonaws.com"
2025-01-27 15:40:41 [ℹ] replaced "CustomResourceDefinition.apiextensions.k8s.io/policyendpoints.networking.k8s.aws"
2025-01-27 15:40:41 [ℹ] skipped existing "kube-system:ServiceAccount/aws-node"
2025-01-27 15:40:41 [ℹ] replaced "kube-system:ConfigMap/amazon-vpc-cni"
2025-01-27 15:40:41 [ℹ] replaced "ClusterRole.rbac.authorization.k8s.io/aws-node"
2025-01-27 15:40:41 [ℹ] replaced "ClusterRoleBinding.rbac.authorization.k8s.io/aws-node"
Error: DaemonSet.apps "aws-node" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"aws-vpc-cni", "app.kubernetes.io/name":"aws-node"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
Anything else we need to know?
Nothing special, this has worked in previous updates all the time.
Self managed EKS cluster and plugins
Versions
eksctl info
eksctl version: 0.202.0
kubectl version: v1.31.4
OS: linux
The text was updated successfully, but these errors were encountered: