Last active
April 5, 2020 10:42
-
-
Save zawyelwin/3de16dc1cf242c9d452f716fffb88d1d to your computer and use it in GitHub Desktop.
Scale all deployment under a namespace
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 i in $(kubectl get deploy -n namespace | awk '{print $1}'); do kubectl scale --replicas=1 deploy -n namespace $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment