View on GitHub

ocp4-docs

Documentation for CentOS CI Infra initiative - OpenShift 4.4 deployment on Baremetal

Graceful Shutdown of an Openshift 4 Cluster

This SOP should be followed in the following scenarios:

Steps

Prequisite steps:

  1. Get the nodes
nodes=$(oc get nodes -o name  | sed -E "s/node\///")
  1. Shutdown the nodes from the administration box associated with the cluster eg prod/staging.
for node in ${nodes[@]}; do ssh -i <ssh_key> core@$node sudo shutdown -h now; done

Resources