Stop and start Openshift 4 cluster
In this post I describe shortly how to shutdown and start up Openshift cluster.
Preparation
Check if all nodes are properly running:
oc get nodes --show-labels
Check if all pods in all projects are working properly. Save the current state:
oc get pods --all-namespaces
Additionally, you can create backup of namespaces. See velero.
Shutdown cluster:
-
Gracefully shutdown all worker nodes:
shutdown -h now
-
Gracefully shutdown Infra nodes:
shutdown -h now
-
Gracefully shutdown all masters:
shutdown -h now
Start cluster:
-
Start master nodes.
-
Start infra nodes.
-
Start worker node.
Check if nodes are started: oc get nodes
Check if pods are working: oc get pods --all-namespaces