1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-12 13:35:40 +02:00

kubectl: add option placeholders (#17608)

This commit is contained in:
Eki9 2025-08-11 15:39:48 +03:00 committed by GitHub
parent 3d0deb1036
commit 846bf39851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,27 +5,31 @@
- Get all namespaces in the current cluster: - Get all namespaces in the current cluster:
`kubectl get namespaces` `kubectl get {{[ns|namespaces]}}`
- Get nodes in a specified namespace: - 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: - 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: - 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: - 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: - Get Kubernetes objects defined in a YAML manifest file: