kubectlDeploying
kubectl scale
Changes the number of replicas for a Deployment, ReplicaSet, or StatefulSet.
Syntax
kubectl scale deployment/<name> --replicas=<n>
Examples
Scale a deployment to 5 replicas
kubectl scale deployment/api --replicas=5Changes the number of replicas for a Deployment, ReplicaSet, or StatefulSet.
kubectl scale deployment/<name> --replicas=<n>
Scale a deployment to 5 replicas
kubectl scale deployment/api --replicas=5