Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

37
tldr/kubectl-get Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 [n]amespace:
`kubectl get nodes --namespace {{namespace}}`
- Get pods in a specified [n]amespace:
`kubectl get pods --namespace {{namespace}}`
- Get deployments in a specified [n]amespace:
`kubectl get deployments --namespace {{namespace}}`
- Get services in a specified [n]amespace:
`kubectl get services --namespace {{namespace}}`
- Get all resources in a specified [n]amespace:
`kubectl get all --namespace {{namespace}}`
- Get Kubernetes objects defined in a YAML manifest [f]ile:
`kubectl get --file {{path/to/manifest.yaml}}`