SOP of Kubernete during mainteance time

Hi Team,

What is order we need to follow in kubernetes Maintance (shutdown or reboot) time. Please help to provide the any script to followup order.

Hi @kcprasad

This question is too broad and depends on many factors, like how the cluster is set up, the criticality of workloads, etc.

Mainly the steps involved would be taking backup for workloads, and volumes, and draining the nodes. performing the maintenance activity then uncordon the nodes.

The CKA course has a section where cluster update is discussed in detail.

Hi @Santosh_KodeKloud,

Let me explain main issue. I have done setup with help of kubeadm (one k8master and one k8slave1 nodes). But the issue whenever i have restarted with/without drain nodes. i am facing several issue. Sometime nodes are crashs or someother reason. Nodes are not performing well.

we are using containderd + flannel along with kubernetes

I am requesting you. kindly help. how to take backup of workloads, volumnes and drain.

Draining the nodes moves your workload from one node to another. If you need to take the backup of the workloads, you need to take the snapshot from the ETCD (Covered in the CKA curriculum). For backing up volumes, you can use a 3rd party tool like Valero.

Thank you @Santosh_KodeKloud for kind response.