mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 15:35:44 +02:00
kubectl: add option placeholders (#17608)
This commit is contained in:
parent
3d0deb1036
commit
846bf39851
1 changed files with 11 additions and 7 deletions
|
@ -5,27 +5,31 @@
|
|||
|
||||
- Get all namespaces in the current cluster:
|
||||
|
||||
`kubectl get namespaces`
|
||||
`kubectl get {{[ns|namespaces]}}`
|
||||
|
||||
- Get nodes in a specified namespace:
|
||||
|
||||
`kubectl get nodes {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Get pods in a specified namespace:
|
||||
|
||||
`kubectl get pods {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Get deployments in a specified namespace:
|
||||
|
||||
`kubectl get deployments {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl get {{[deploy|deployments]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Get services in a specified namespace:
|
||||
|
||||
`kubectl get services {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl get {{[svc|services]}} {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
- Get all resources in a specified namespace:
|
||||
- Get other resources:
|
||||
|
||||
`kubectl get all {{[-n|--namespace]}} {{namespace}}`
|
||||
`kubectl get {{persistentvolumeclaims|secret}}`
|
||||
|
||||
- Get all resources in all namespaces:
|
||||
|
||||
`kubectl get all {{[-A|--all-namespaces]}}`
|
||||
|
||||
- Get Kubernetes objects defined in a YAML manifest file:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue