Difference between revisions of "Kubectl scale"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
* [[Horizontal Pod Autoscaler (HPA)]] | * [[Horizontal Pod Autoscaler (HPA)]] | ||
* [[sts]] or [[statefulset]] | * [[sts]] or [[statefulset]] | ||
+ | [[kubectl autoscale]] | ||
== See also == | == See also == |
Revision as of 17:08, 1 December 2022
kubectl scale deployment YOUR_DEPLOYMENT_NAME
kubectl scale --help
kubectl scale --replicas=3 rs/foo
kubectl scale deployment <<name>> --replicas=0 -n service
kubectl scale sts
kubectl scale statefulset statefulset --replicas=X
kubectl scale deployment
Errors
Error from server (NotFound): deployments.apps "your-app" not found
Related terms
- Kubernetes deployments:
kubectl rollout
- ReplicaSet
kubectl set
- Horizontal Pod Autoscaler (HPA)
- sts or statefulset
kubectl autoscale
See also
Advertising: