kubernetes / kubeadm

Aggregator for issues filed against kubeadm
Apache License 2.0
3.76k stars 716 forks source link

Upgrade is not updating KubeadmConfigSpec. ClusterConfiguration. KubernetesVersion #3117

Closed gandhisagar closed 2 hours ago

gandhisagar commented 2 hours ago

We are doing upgrade of kubernetes cluster deployed using cluster-api (capv- on vsphere infrastructure).

As part of upgrade , we are applying the following changes:

  1. Applying clusterctl upgrade plan
  2. Changing pre-post kubeadm commands
  3. Changing spec.version (e.g. from 1.29.3 to 1.30.4)

Cluster is getting upgraded successfully. we can see all nodes are at 1.30.4. but KubeadmConfigSpec. ClusterConfiguration. KubernetesVersion is not getting updated automatically.

When we tried to update it manually , it fails as forbidden to update this field.

Any suggestion or any specific step in upgrade we are missing out ?

clusterctl version: clusterctl version: &version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.3", GitCommit:"965ffa1d94230b8127245df750a99f09eab9dd97", GitTreeState:"clean", BuildDate:"2024-03-12T17:15:08Z", GoVersion:"go1.21.8", Compiler:"gc", Platform:"linux/amd64"}

bootstrap-kubeadm: v1.7.1 cert-manager: v1.14.2 cluster-api: v1.7.1 control-plane-kubeadm: v1.7.1 infrastructure-vsphere: v1.10.0 ipam-incluster: v0.1.0

gandhisagar commented 2 hours ago

posted on wrong group.