mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
kubectl-scale: add page (#11123)
* kubectl scale: add page * kubectl scale: fix typo Co-authored-by: Juri Dispan <juri.dispan@posteo.net> --------- Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
parent
7c417ee0bd
commit
4256f44477
1 changed files with 16 additions and 0 deletions
16
pages/common/kubectl-scale.md
Normal file
16
pages/common/kubectl-scale.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# kubectl edit
|
||||
|
||||
> Set a new size for a deployment, replica set, replication controller, or stateful set.
|
||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale>.
|
||||
|
||||
- Scale a replica set:
|
||||
|
||||
`kubectl scale --replicas={{number_of_replicas}} rs/{{replica_name}}`
|
||||
|
||||
- Scale a resource identified by a file:
|
||||
|
||||
`kubectl scale --replicas={{number_of_replicas}} -f {{path/to/file.yml}}`
|
||||
|
||||
- Scale a deployment based on current number of replicas:
|
||||
|
||||
`kubectl scale --current-replicas={{current_replicas}} --replicas={{number_of_replicas}} deployment/{{deployment_name}}`
|
Loading…
Add table
Reference in a new issue