Discover valid YAML fields from kubectl.
Section: YAML Validation and Troubleshooting
Explain a field path
bash
bash
kubectl explain deployment.spec.template.spec.containersLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing YAML Validation and Troubleshooting
Server-side dry run
Validate a manifest against the API server without persisting it.
Show last-applied configuration
Inspect the apply annotation on a live resource.