Skip to content
masterclass Buddy

DevOps · Command

kubectl scale

kubectl scale sets the desired replica count for a Deployment, ReplicaSet, ReplicationController, or StatefulSet. It can check preconditions before sending the scale request.

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
  • Deployment
  • ReplicaSet
  • ReplicationController
  • StatefulSet
  • HorizontalPodAutoscaler
  • kubectl get
  • kubectl apply

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