k3s-io / cluster-api-k3s

Cluster API k3s
Apache License 2.0
143 stars 40 forks source link

clusterctl alpha rollout restart kthreescontrolplane support #80

Open lukebond opened 10 months ago

lukebond commented 10 months ago

For kubeadm clusters one can do this:

$ clusterctl alpha rollout restart kubeadmcontrolplane/my-cluster

(see https://cluster-api.sigs.k8s.io/clusterctl/commands/alpha-rollout)

...and it will replace the controlplane like it would a machine deployment. it would be nice if we could support this! i'll go read up on it and dump some things in here to gather requirements and spec it out.

lukebond commented 10 months ago

was looking at the kubeadm implementation; sharing a few observations:

lukebond commented 10 months ago

i edited a KCP, setting spec.upgradeAfter and it did a rollout. brilliant! guess we just need to implement it in the clusterctl CLI.

lukebond commented 10 months ago

this explains why a configuration change doesn't trigger a rollout!

lukebond commented 10 months ago

Created an issue for it: https://github.com/cluster-api-provider-k3s/cluster-api-k3s/issues/83