Skip to content

Instantly share code, notes, and snippets.

@raghur
Created February 22, 2017 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raghur/837ba73ea0e82f59f5cde40941a592a1 to your computer and use it in GitHub Desktop.
Save raghur/837ba73ea0e82f59f5cde40941a592a1 to your computer and use it in GitHub Desktop.
# scale all deployments to 0 on k8s
$ kubectl get deployments -o jsonpath={.items[*].metadata.name} |xargs -d ' ' -I '{}' kubectl scale deployment --replicas=0
deployment "auth-service" scaled
deployment "demo-application" scaled
deployment "demo-gateway" scaled
deployment "hystrix" scaled
deployment "opining-worm-rabbitmq" scaled
deployment "webapi-app" scaled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment