Skip to content
Scaling and rolloutKubernetes

kubectl scale

Scale deployments, statefulsets, or replicasets to desired counts.

Command
kubectl scale deployment --replicas=

Example usage

Increase or decrease replica counts to meet demand.

kubectl scale deployment <name> --replicas=<count>
kubectl scale statefulset <name> --replicas=<count>

Related tags

Scaling and rolloutk8skubectlclusters