Skip to content

Instantly share code, notes, and snippets.

@schneefisch
Last active September 14, 2020 09:09
Show Gist options
  • Save schneefisch/bf6d4d88aae3f4f60ffa739077bb47e0 to your computer and use it in GitHub Desktop.
Save schneefisch/bf6d4d88aae3f4f60ffa739077bb47e0 to your computer and use it in GitHub Desktop.
scale deployment replicas in kubernetes
# 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