Best way to safely or remove nodes from Charmed K8s

I want to safely add or remove nodes. Can I just add or destroy in the juju gui? Do people recommend shutting down the cluster to be safest? I am able to experiment in my setting so I will try doing it while the cluster is running. I am hoping not to have problems since that will save me time, even though nearly everything I have to redeploy is scripted and in SCM.

The node should be cordoned and drained of pods first. This can be accomplished using the pause action on kubernetes-worker. There are docs on this here: Scaling | Charmed Kubernetes documentation | Ubuntu (see the “Scaling down kubernetes-worker” section).

1 Like