1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 23:42:07 +02:00
tldr/pages/common/kubectl-scale.md
Juri Dispan 9d383ade68
*: fix typos in command names (#11730)
* *: fix typos in command names

* command name fixes in other languages

* fix incorrectly translated commands

* change incorrect file name

* qm move disk alias pages

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 17:41:19 +05:30

16 lines
600 B
Markdown

# kubectl scale
> 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}}`