Skip to content

Instantly share code, notes, and snippets.

@zawyelwin
Last active April 5, 2020 10:42
Show Gist options
  • Save zawyelwin/3de16dc1cf242c9d452f716fffb88d1d to your computer and use it in GitHub Desktop.
Save zawyelwin/3de16dc1cf242c9d452f716fffb88d1d to your computer and use it in GitHub Desktop.
Scale all deployment under a namespace
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