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:

  1. Gracefully shutdown all worker nodes: shutdown -h now

  2. Gracefully shutdown Infra nodes: shutdown -h now

  3. Gracefully shutdown all masters: shutdown -h now

Start cluster:

  1. Start master nodes.

  2. Start infra nodes.

  3. Start worker node.

Check if nodes are started: oc get nodes

Check if pods are working: oc get pods --all-namespaces

Reference:

How To: Stop and start a production OpenShift Cluster