Difference between revisions of "Kubectl scale"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
* <code>[[kubectl set]]</code> | * <code>[[kubectl set]]</code> | ||
* [[Horizontal Pod Autoscaler (HPA)]] | * [[Horizontal Pod Autoscaler (HPA)]] | ||
+ | * [[Sts]] | ||
== See also == | == See also == |
Revision as of 17:24, 6 July 2022
kubectl scale deployment YOUR_DEPLOYMENT_NAME
- https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale
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
Related terms
See also
- ReplicaSet,
kubectl get replicaset, kubectl describe replicaset, kind: ReplicaSet, ScalingReplicaSet
, replicaset-controller kubectl scale
: [deployment | sts | --help
], HPAkubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: