LinuxCommandLibrary

kubectl-describe

TLDR

Describe pod

$ kubectl describe pod [pod-name]
copy
Describe node
$ kubectl describe node [node-name]
copy
Describe deployment
$ kubectl describe deployment [deployment-name]
copy
Describe with selector
$ kubectl describe pods -l [app=myapp]
copy
Describe in namespace
$ kubectl describe pod [pod-name] -n [namespace]
copy

SYNOPSIS

kubectl describe [options] resource [name]

DESCRIPTION

kubectl describe shows detailed resource information. It displays configuration, status, and events.
The command provides more detail than get. It's useful for debugging and inspecting resources.
kubectl describe shows resource details.

PARAMETERS

RESOURCE

Resource type (pod, node, deployment, etc.).
NAME
Resource name (optional).
-l SELECTOR
Label selector.
-n NAMESPACE
Target namespace.
--all-namespaces
Search all namespaces.
--help
Display help information.

CAVEATS

Subcommand of kubectl. Output not for parsing. Use get -o json for structured data.

HISTORY

kubectl describe provides detailed resource inspection for Kubernetes troubleshooting.

SEE ALSO

Copied to clipboard