Fix typos in cheatsheet.md
This commit is contained in:
parent
20042ea1c8
commit
3e20970eb3
|
|
@ -39,7 +39,7 @@ complete -o default -F __start_kubectl k
|
|||
source <(kubectl completion zsh) # set up autocomplete in zsh into the current shell
|
||||
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
|
||||
```
|
||||
### A Note on --all-namespaces
|
||||
### A note on `--all-namespaces`
|
||||
|
||||
Appending `--all-namespaces` happens frequently enough where you should be aware of the shorthand for `--all-namespaces`:
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ EOF
|
|||
|
||||
```
|
||||
|
||||
## Viewing, finding resources
|
||||
## Viewing and finding resources
|
||||
|
||||
```bash
|
||||
# Get commands with basic output
|
||||
|
|
@ -346,7 +346,7 @@ kubectl exec my-pod -c my-container -- ls / # Run command in existing po
|
|||
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
|
||||
kubectl top pod POD_NAME --sort-by=cpu # Show metrics for a given pod and sort it by 'cpu' or 'memory'
|
||||
```
|
||||
## Copy files and directories to and from containers
|
||||
## Copying files and directories to and from containers
|
||||
|
||||
```bash
|
||||
kubectl cp /tmp/foo_dir my-pod:/tmp/bar_dir # Copy /tmp/foo_dir local directory to /tmp/bar_dir in a remote pod in the current namespace
|
||||
|
|
|
|||
Loading…
Reference in New Issue