How do I do a rolling reboot of all the nodes in an OpenShift cluster machince config pool?

Use this command to a gracefully reboot of nodes in an OpenShift cluster mReboot all MachineConfigPoolsachine config pool:

Reboot all master MachineConfigPools

  oc adm reboot-machine-config-pool mcp/master

Reboot all worker MachineConfigPools

  oc adm reboot-machine-config-pool mcp/worker

Reboot all MachineConfigPools

  oc adm reboot-machine-config-pool mcp/master mcp/worker