kubectl scale
Jump to navigation
Jump to search
kubectl scale deployment YOUR_DEPLOYMENT_NAMEkubectl scale --helpkubectl scale --replicas=3 rs/fookubectl scale deployment <<name>> --replicas=0 -n servicekubectl scale stskubectl scale statefulset statefulset --replicas=Xkubectl scale deployment / kubectl scale deployments
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]
- ReplicaSet,
kubectl get replicaset, kubectl describe replicaset, kind: ReplicaSet, ScalingReplicaSet, replicaset-controller,replicaCount kubectl scale: [deployment | sts | machinedeployment | --help], HPAkubectl rollout [ status | restart | resume | pause | history | undo ], kubectl rollout --help
Advertising: