describe

Describing Kubernetes resources

Show details of a specific resource or group of resources

Print a detailed description of the selected resources, including related resources such as events or controllers. You may select a single object by name, all objects of that type, provide a name prefix, or label selector.

Command

  1. $ kubectl describe (-f FILENAME | TYPE [NAME_PREFIX | -l label] | TYPE/NAME)

Example

Command

  1. kubectl describe deployments

Output

  1. Name: nginx
  2. Namespace: default
  3. CreationTimestamp: Thu, 15 Nov 2018 10:58:03 -0800
  4. Labels: app=nginx
  5. Annotations: deployment.kubernetes.io/revision=1
  6. Selector: app=nginx
  7. Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
  8. StrategyType: RollingUpdate
  9. MinReadySeconds: 0
  10. RollingUpdateStrategy: 25% max unavailable, 25% max surge
  11. Pod Template:
  12. Labels: app=nginx
  13. Containers:
  14. nginx:
  15. Image: nginx
  16. Port: <none>
  17. Host Port: <none>
  18. Environment: <none>
  19. Mounts: <none>
  20. Volumes: <none>
  21. Conditions:
  22. Type Status Reason
  23. -
  24. Progressing True NewReplicaSetAvailable
  25. Available True MinimumReplicasAvailable
  26. OldReplicaSets: <none>
  27. NewReplicaSet: nginx-78f5d695bd (1/1 replicas created)
  28. Events: <none>