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.
SubscribeRelated
kubectl getkubectl applyDeploymentReplicaSetReplicationControllerStatefulSetHorizontalPodAutoscaler