Last active
September 14, 2020 09:09
-
-
Save schneefisch/bf6d4d88aae3f4f60ffa739077bb47e0 to your computer and use it in GitHub Desktop.
scale deployment replicas in kubernetes
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
# scale to 10 replicas | |
kubectl scale deployment <nginx-deployment> --replicas=10 | |
# auto-Scaling | |
kubectl autoscale deployment <nginx-deployment> --min=2 --max=8 --cpu-percent=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment