- Usage:
- Options:
- Examples:
- Describe a node
kubectl describe nodes <NODE>
# Describe a podkubectl describe pods <POD>
# Describe a pod identified by type and name in “pod.yaml”kubectl describe -f pod.yaml
# Describe all podskubectl describe pods
# Describe pods by label name=myLabelkubectl describe po -l name=myLabel
查看对象的更详细的信息kubectl describe node <节点名>
- 查看pod由哪个rc控制
kubectl describe pod <POD> | grep Control
- 查看endpoints资源
kubectl get ep
Show details of a specific resource or group of resources
Usage:
kubectl describe -f FILENAME
kubectl describe TYPE
kubectl describe TYPE NAME
kubectl describe TYPE -l label
Options:
-A, —all-namespaces=false: If present, list the requested object(s) across all namespaces.
-f, —filename=[]: Filename, directory, or URL to files containing the resource to describe
-l, —selector=’’: (label selector),Selector (label query) to filter on