Difference between revisions of "Kubectl scale"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* <code>[[kubectl scale deployment]] <<name>> --replicas=0 -n service</code> | * <code>[[kubectl scale deployment]] <<name>> --replicas=0 -n service</code> | ||
+ | [[kubectl scale sts]] | ||
== Related terms == | == Related terms == |
Revision as of 06:53, 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
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: