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.
SubscribeRelated
DeploymentReplicaSetReplicationControllerStatefulSetHorizontalPodAutoscalerkubectl getkubectl apply