Kubernetes YAML Kustomize and CRDs/Explain a CRD schema path

Inspect CRD structure from kubectl.

Section: CRDs and Custom Resources

Explain a CRD schema path

bash
bash
kubectl explain widgets.spec --api-version=example.com/v1

Learn 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 CRDs and Custom Resources
Basic CustomResourceDefinition YAML
Define a namespaced custom API.
OpenIn sheetyamlsame section
Custom resource instance YAML
Create an object for the custom API.
OpenIn sheetyamlsame section
Apply a kustomization directory
Use kubectl's built-in Kustomize support.
OpenIn sheetbash1 tag match
Minimal kustomization.yaml
List resource YAML files managed together.
Patch replicas via overlay
Set environment-specific replica count.
Generate ConfigMap from literals
Create config objects as part of the build.