kubectl explain pods

Category: Kubernetes & Containers

kubectl explain pods

Show the schema of a resource

Prints the documented structure of the pods resource, including required fields and types, straight from the API server. Drill deeper with dotted paths, for example kubectl explain pods.spec.containers. Useful before writing manifests by hand.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.