Created
February 22, 2017 08:26
-
-
Save raghur/837ba73ea0e82f59f5cde40941a592a1 to your computer and use it in GitHub Desktop.
This file contains 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
# 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