Skip to content
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

Open
vandamb opened this issue Jan 27, 2025 · 5 comments
Labels
kind/bug priority/important-soon Ideally to be resolved in time for the next release

Comments

@vandamb
Copy link

vandamb commented Jan 27, 2025

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

@inih
Copy link

inih commented Jan 27, 2025

I'm also experiencing the same bug

eksctl version: 0.202.0
kubectl version: v1.31.2
OS: linux

@TiberiuGC TiberiuGC added the priority/important-soon Ideally to be resolved in time for the next release label Jan 29, 2025
@vla6t0r
Copy link

vla6t0r commented Jan 29, 2025

I've got the same issue when updating EKS from v1.29 to 1.30

eksctl version: 0.202.0
kubectl version: v1.29.2
OS: MacOS

Update: works fine with the previous eksctl version 0.199.0

@nackjicholson
Copy link

I too downgraded to 0.201.0 and tried again. Works fine.

@sillyfrog
Copy link

sillyfrog commented Feb 3, 2025

Same issue for me running eksctl version 0.203.0
Downgrading to 0.201.0 fixed it

(At the moment I'm using v0.203 to start the upgrade to v1.32, and then v0.201 to do the service updates)

@devops-cafex
Copy link

Hitting this same issue with eksctl 0.202.0 needed to downgrade to 0.201.0 to run the service updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug priority/important-soon Ideally to be resolved in time for the next release
Projects
None yet
Development

No branches or pull requests

7 participants