Kubectl explain
Use kubectl explain
to quickly explore the properties of a Kubernetes resource.
- Exploring top-level properties of a Pod
kubectl explain pod
- Exploring properties within the containers section of the specification
kubectl explain pod.spec.containers
This command is very handy, providing resource information directly in the terminal - no need to browse the online documentation.