Directly scale a ReplicaSet when needed.

Section: Autoscaling

Scale replicaset

bash
bash
kubectl scale replicaset web-7cbb9f9d44 --replicas=0 -n payments
Explanation

Directly scale a ReplicaSet when needed.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Autoscaling
List replicasets
Show ReplicaSets created by Deployments.
OpenIn sheetbashsame section
Describe replicaset
Inspect pod template and controller ownership.
OpenIn sheetbashsame section
Create HPA
Create a HorizontalPodAutoscaler for a deployment.
OpenIn sheetbashsame section
List HPAs
Show HorizontalPodAutoscalers.
OpenIn sheetbashsame section
Describe HPA
Inspect metrics, thresholds, and scaling recommendations.
OpenIn sheetbashsame section
Scale statefulset
Change StatefulSet replica count.
OpenIn sheetbash1 tag match