kubectl describe

, and

Syntax

kubectl describe <resource> [name] [flags]

Parameters

ParametersDescriptionExamplesLevel
-n --namespace kubectl describe pod nginx -n production Common
-l --selector kubectl describe pods -l app=web Common
--show-events ( true) kubectl describe pod nginx --show-events=false Advanced

Examples

Pod

kubectl describe pod nginx-7d9b8c5f6-x2k4m
, and more

kubectl describe node worker-1
, and more

Service

kubectl describe svc my-service
, Endpoints and more

Deployment

kubectl describe deployment web-app
Events

Common Errors

Error from server (NotFound)and, kubectl get

Tips

Related Commands