Created
October 30, 2019 14:45
-
-
Save ohmrefresh/d5391ec438e162fc2de13b4458ac51fd to your computer and use it in GitHub Desktop.
[OCP] Scale down pods all deployment in namespace [Project]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for deployment in $(oc get dc -n name-space | awk '{print $1}'| awk 'NR != 1'); do oc scale dc/${deployment} --replicas=0 -n name-space ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment