Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-08 00:19:16 +00:00
parent 4102fec4f8
commit 52f5647220
45 changed files with 1002 additions and 38 deletions

View File

@@ -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}}`