DX OI: Shutdown / Restart all Pods on OpenShift
search cancel

DX OI: Shutdown / Restart all Pods on OpenShift

book

Article ID: 186227

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

When you want to restart all DX Operational Intelligence Pods or shutdown all running Pods by maintenance, run the following command:

Environment

OpenShift 3.x

Resolution

Stop OpenShift Pods on all nodes
# oc adm drain -l "a!=" --delete-local-data --ignore-daemonsets

Start OpenShift Pods on all nodes
# oc adm uncordon -l "a!="

Additional Information

You will have to login with the OpenShift Admin account before executing the above command. 
For example:
# oc login -u system:admin