mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: pixel <pixel+github@chrissx.de> Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
32 lines
871 B
Markdown
32 lines
871 B
Markdown
# kubectl get
|
|
|
|
> Abfragen von Kubernetes Resourcen und Objekten.
|
|
> Weitere Informationen: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get>.
|
|
|
|
- Zeige alle Namespaces im Cluster an:
|
|
|
|
`kubectl get namespaces`
|
|
|
|
- Frage alle Nodes in einem bestimmten Namespace ab:
|
|
|
|
`kubectl get nodes --namespace {{namespace}}`
|
|
|
|
- Frage alle Pods in einem bestimmten Namespace ab:
|
|
|
|
`kubectl get pods --namespace {{namespace}}`
|
|
|
|
- Frage alle Deployments in einem bestimmten Namespace ab:
|
|
|
|
`kubectl get deployments --namespace {{namespace}}`
|
|
|
|
- Frage alle Services in einem bestimmten Namespace ab:
|
|
|
|
`kubectl get services --namespace {{namespace}}`
|
|
|
|
- Frage alle Resourcen in einem bestimmten Namespace ab:
|
|
|
|
`kubectl get all --namespace {{namespace}}`
|
|
|
|
- Frage alle Ressourcen ab, die in einer YAML Datei definiert sind:
|
|
|
|
`kubectl get -f {{pfad/zu/manifest.yaml}}`
|