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] Default addons update version is different with listed latest version. #7864

Open
yeoraek opened this issue Jul 2, 2024 · 3 comments

Comments

@yeoraek
Copy link

yeoraek commented Jul 2, 2024

What were you trying to accomplish?

I tried to update default add-ons, aws-node(cni), kube-proxy, coredns with latest version. But it has different minor or patch version. I couldn't update the latest version that listed on the result of command 'eksctl utils describe-addon-versions'.

After upgrading cluster and components(default addson), it is able to have them with the latest version?

What happened?

 eksctl utils describe-addon-versions --kubernetes-version 1.27 --name vpc-cni | grep AddonVersion   
			"AddonVersions": [
					"AddonVersion": "v1.18.2-eksbuild.1",
					"AddonVersion": "v1.18.1-eksbuild.3",
					"AddonVersion": "v1.18.1-eksbuild.1",
					"AddonVersion": "v1.18.0-eksbuild.1",
					"AddonVersion": "v1.17.1-eksbuild.1",
	                                                        ...

As above list, I should be able to update with v1.18.2-eksbuild.1 for Default add-ons with 'eksctl utils update-aws-node --cluster=' command as follow documentation, https://eksctl.io/usage/addon-upgrade/

I had a result as below

$ kubectl describe daemonset aws-node --namespace kube-system | grep amazon-k8s-cni: | cut -d : -f 3
v1.18.1

it was same for kube-proxy,

 eksctl utils describe-addon-versions --kubernetes-version 1.27 --name kube-proxy | grep AddonVersion
			"AddonVersions": [
					"AddonVersion": "v1.27.12-eksbuild.5",
					"AddonVersion": "v1.27.12-eksbuild.2",
					"AddonVersion": "v1.27.10-eksbuild.2",
					"AddonVersion": "v1.27.8-eksbuild.4",
					"AddonVersion": "v1.27.8-eksbuild.1",
					"AddonVersion": "v1.27.6-eksbuild.2",
					"AddonVersion": "v1.27.4-eksbuild.2",
					"AddonVersion": "v1.27.3-eksbuild.2",
					"AddonVersion": "v1.27.3-eksbuild.1",

But after update kube-proxy, I got v1.27.13-eksbuild.1.

How to reproduce it?

I have created 1.25 version eks cluster and gradually upgrade with control plane as the document. Then I used the command for Default addons.

eksctl utils update-kube-proxy --cluster=<clusterName>
eksctl utils update-aws-node --cluster=<clusterName>
eksctl utils update-coredns --cluster=<clusterName>

As a result, I got the updated version for each component as below

kube-proxy : v1.27.13-eksbuild.1
coredns : v1.10.1-eksbuild.4
aws-node : v1.18.1

Then I configured with config file as below:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: my-cluster125
  region: us-east-2

addons:
- name: vpc-cni
  version: v1.18.2-eksbuild.1
  resolveConflicts: overwrite

However, it didn't work to update from v1.18.1 to the latest.
And after the manual updating with latest version's yaml file, it was updated to the expected version.
There is minor ddiscrepancy when updating with command "eksctl utils update-aws-node/kube-proxy/coredns"

Logs
The logs of eksctl utils update-aws-node --cluster=my-cluster125

2024-07-02 20:14:46 [ℹ]  replaced "CustomResourceDefinition.apiextensions.k8s.io/eniconfigs.crd.k8s.amazonaws.com"
2024-07-02 20:14:46 [ℹ]  replaced "CustomResourceDefinition.apiextensions.k8s.io/policyendpoints.networking.k8s.aws"
2024-07-02 20:14:47 [ℹ]  skipped existing "kube-system:ServiceAccount/aws-node"
2024-07-02 20:14:47 [ℹ]  replaced "kube-system:ConfigMap/amazon-vpc-cni"
2024-07-02 20:14:47 [ℹ]  replaced "ClusterRole.rbac.authorization.k8s.io/aws-node"
2024-07-02 20:14:48 [ℹ]  replaced "ClusterRoleBinding.rbac.authorization.k8s.io/aws-node"
2024-07-02 20:14:48 [ℹ]  replaced "kube-system:DaemonSet.apps/aws-node"
2024-07-02 20:14:48 [ℹ]  "aws-node" is now up-to-date

Anything else we need to know?
I downloaded eksctl with brew, version is 0.183.0

Versions
eksctl info
eksctl version: 0.183.0
kubectl version: v1.30.2
OS: darwin

Copy link
Contributor

github-actions bot commented Jul 2, 2024

Hello yeoraek 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@yeoraek yeoraek changed the title [Bug] Default addons update version is different with listed version. [Bug] Default addons update version is different with listed latest version. Jul 2, 2024
Copy link
Contributor

github-actions bot commented Aug 2, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Aug 2, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
@TiberiuGC TiberiuGC reopened this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants