mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 11:06:00 +02:00
kubectl-get: add page (#4488)
This commit is contained in:
parent
0c773c659a
commit
c86aa251bd
1 changed files with 28 additions and 0 deletions
28
pages/common/kubectl-get.md
Normal file
28
pages/common/kubectl-get.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# kubectl get
|
||||
|
||||
> Get Kubernetes objects and resources.
|
||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get>.
|
||||
|
||||
- Get all namespaces in the current cluster:
|
||||
|
||||
`kubectl get namespaces`
|
||||
|
||||
- Get nodes in a specified namespace:
|
||||
|
||||
`kubectl get nodes -n {{namespace}}`
|
||||
|
||||
- Get pods in a specified namespace:
|
||||
|
||||
`kubectl get pods -n {{namespace}}`
|
||||
|
||||
- Get deployments in a specified namespace:
|
||||
|
||||
`kubectl get deployments -n {{namespace}}`
|
||||
|
||||
- Get services in a specified namespace:
|
||||
|
||||
`kubectl get services -n {{namespace}}`
|
||||
|
||||
- Get Kubernetes objects defined in a YAML manifest:
|
||||
|
||||
`kubectl get -f {{path/to/manifest}}.yaml`
|
Loading…
Add table
Reference in a new issue