kubectl scale
Jump to navigation
Jump to search
kubectl scale deployment YOUR_DEPLOYMENT_NAME
kubectl scale --help
kubectl scale --replicas=3 rs/foo
kubectl scale deployment <<name>> --replicas=0 -n service
kubectl scale sts
kubectl scale statefulset statefulset --replicas=X
kubectl scale deployment
k scale deployments -n nginx-ingress nginx-ingress-controller --replicas=0 k scale deployments -n nginx-ingress nginx-ingress-controller --replicas=1 ktail -n nginx-ingress
Errors[edit]
Error from server (NotFound): deployments.apps "your-app" not found
Related terms[edit]
- Kubernetes deployments:
kubectl rollout
- ReplicaSet
kubectl set
- Horizontal Pod Autoscaler (HPA)
- sts or statefulset
kubectl autoscale
See also[edit]
Advertising: