kubectl get
Get Kubernetes objects and resources. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_get/.
- Get all namespaces in the current cluster:
kubectl get
- Get nodes in a specified namespace:
kubectl get
- Get pods in a specified namespace:
kubectl get
- Get deployments in a specified namespace:
kubectl get
- Get services in a specified namespace:
kubectl get
- Get other resources:
kubectl get
- Get all resources in all namespaces:
kubectl get all
- Get Kubernetes objects defined in a YAML manifest file:
kubectl get
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
