mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-08 04:57:24 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scale a replica set:
|
||||
|
||||
`kubectl scale --replicas={{number_of_replicas}} rs/{{replica_name}}`
|
||||
`kubectl scale --replicas {{replicas_count}} rs/{{replica_name}}`
|
||||
|
||||
- Scale a resource identified by a file:
|
||||
|
||||
`kubectl scale --replicas={{number_of_replicas}} {{[-f|--filename]}} {{path/to/file.yml}}`
|
||||
`kubectl scale --replicas {{replicas_count}} {{[-f|--filename]}} {{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}}`
|
||||
`kubectl scale --replicas {{replicas_count}} --current-replicas {{current_replicas}} {{[deploy|deployment]}}/{{deployment_name}}`
|
||||
|
||||
Reference in New Issue
Block a user