pages/*, style-guide: update contents, fix Markdown (#10492)
* pages/*, style-guide: update pages, fix Markdown (commit 1) * Update pages * style-guide.de: update page * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * pip3: remove search command * rpm: update path placeholder Co-authored-by: pixel <pixel+github@chrissx.de> * Update pages/linux/pkgfile.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: pixel <pixel+github@chrissx.de>
This commit is contained in:

committed by
GitHub

parent
587d8443d8
commit
2135714193
@@ -5,20 +5,20 @@
|
||||
|
||||
- Run an nginx pod and expose port 80:
|
||||
|
||||
`kubectl run --generator=run-pod/v1 nginx --image=nginx --port 80`
|
||||
`kubectl run {{nginx-dev}} --image=nginx --port 80`
|
||||
|
||||
- Run an nginx pod, setting the TEST_VAR environment variable:
|
||||
|
||||
`kubectl run --generator=run-pod/v1 nginx --image=nginx --env="TEST_VAR=testing"`
|
||||
`kubectl run {{nginx-dev}} --image=nginx --env="{{TEST_VAR}}={{testing}}"`
|
||||
|
||||
- Show API calls that would be made to create an nginx container:
|
||||
|
||||
`kubectl run --generator=run-pod/v1 nginx --image=nginx --dry-run`
|
||||
`kubectl run {{nginx-dev}} --image=nginx --dry-run={{none|server|client}}`
|
||||
|
||||
- Run an Ubuntu pod interactively, never restart it, and remove it when it exits:
|
||||
|
||||
`kubectl run --generator=run-pod/v1 -it temp-ubuntu --image=ubuntu:20.04 --restart=Never --rm -- /bin/bash`
|
||||
`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --restart=Never --rm -- /bin/bash`
|
||||
|
||||
- Run an Ubuntu pod, overriding the default command with echo, and specifying custom arguments:
|
||||
|
||||
`kubectl run --generator=run-pod/v1 temp-ubuntu --image=ubuntu:20.04 --command -- echo arg1 arg2 arg3`
|
||||
`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --command -- echo {{argument1 argument2 ...}}`
|
||||
|
Reference in New Issue
Block a user