Closed FischerLGLN closed 2 years ago
Please have a look on this helm chart: https://github.com/syself/charts/blob/main/charts/capi-cr/templates/controlplane.cluster.x-k8s.io/kubeadm_control_plane.yaml#L18 Here you will see that a new HcloudMachineTemplate is created and the reference is changed. In general more information on: https://cluster-api.sigs.k8s.io/tasks/upgrading-clusters.html#upgrading-the-control-plane-machines
@batistein Thanks for the quick answer. I haven't picked your helm chart yet, because the templates are older than the templates from cluster-api generate. Nice article, I'll try out and increment the KubeadmControlPlane spec version :+1:
@batistein Okay, I fetched the HCloudMachineTemplate from the cluster.
testcluster-control-plane.yaml
then I renamed the Object to name testcluster-control-plane2 and changed the image to type: cx31
I applied the resource to the cluster.
After that I changed KubeadmControlPlane to point with the infrastructureRef to the new HcloudMachineTemplate testcluster-control-plane2.
After that it worked!
Thank you very much for the feedback! I will close that issue then.
/kind bug
Hi, I am asking myself, what would be the best way to upgrade the control plane server? cx21 -> cx31
I've created a helm chart for this:
Before
After
But upgrade of the helm chart had not the intended effect of migrating everything to a cx31 server.
Environment:
kubectl version
) 1.23.4/etc/os-release
): fedora-35