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
- Create a service for a resource, which will be served from container port to node port:
`kubectl expose {{resource_type}} {{resource_name}} --port={{node_port}} --target-port={{container_port}}`
`kubectl expose {{resource_type}} {{resource_name}} --port {{node_port}} --target-port {{container_port}}`
- Create a service for a resource identified by a file:
`kubectl expose {{[-f|--filename]}} {{path/to/file.yml}} --port={{node_port}} --target-port={{container_port}}`
`kubectl expose {{[-f|--filename]}} {{path/to/file.yml}} --port {{node_port}} --target-port {{container_port}}`
- Create a service with a name, to serve to a node port which will be same for container port:
`kubectl expose {{resource_type}} {{resource_name}} --port={{node_port}} --name={{service_name}}`
`kubectl expose {{resource_type}} {{resource_name}} --port {{node_port}} --name {{service_name}}`