Restarting your cluster
Restart an IBM Cloud Private cluster.
To stop all nodes for your cluster, you need to stop the nodes in the following order:
- Worker nodes
- Proxy nodes
- Management nodes
- Master node
To restart all nodes for your cluster, start the nodes in the following order:
- Master node
- Management nodes
- Proxy nodes
- Worker nodes
How to stop a IBM Cloud Private cluster node
Use the following commands to stop an individual node for your cluster.
Important: Before you stop the kubelet
and docker
service on the node, mark the node as unschedulable. Run the following command:
kubectl cordon 9.111.255.122
Note: Marking the node as unschedulable disables scheduling new pods on the node.
-
Shut down the system by stopping the kubelet on the target node by running the following command:
sudo systemctl stop kubelet
-
Stop the docker containers or the docker runtime by running the following command:
sudo systemctl stop docker
How to start a IBM Cloud Private cluster node
-
Restart the Docker by running the following command:
sudo systemctl start docker
-
Restart the kubelet and ensure that it started successfully by running the following command:
sudo systemctl start kubelet sudo systemctl status kubelet
-
If the kubelet service is unsuccessful, view the logs for the kubelet by running the following command:
sudo journalctl -e -u kubelet
-
Exit maintenance by running the following command:
kubectl uncordon 9.111.255.122