Skip to content
masterclass Buddy

Kubernetes · Command

kubectl scale

kubectl scale changes the desired number of replicas for a Kubernetes workload. It supports Deployments, ReplicaSets, ReplicationControllers, and StatefulSets, with optional checks before scaling.

Last updated

Syntax

kubectl scale [--resource-version=version] [--current-replicas=count] --replicas=COUNT (-f FILENAME | TYPE NAME)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • kubectl get
  • kubectl apply
  • Deployment
  • ReplicaSet
  • ReplicationController
  • StatefulSet
  • HorizontalPodAutoscaler

Source: kubectl scale. Checked 2026-11-03.