Kubernetes YAML Kustomize and CRDs/Custom resource instance YAML

Create an object for the custom API.

Section: CRDs and Custom Resources

Custom resource instance YAML

yaml
yaml
apiVersion: example.com/v1
kind: Widget
metadata:
  name: blue-widget
spec:
  size: large

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
Explain a CRD schema path
Inspect CRD structure from kubectl.
OpenIn sheetbashsame section
Minimal kustomization.yaml
List resource YAML files managed together.
Patch replicas via overlay
Set environment-specific replica count.
Apply a kustomization directory
Use kubectl's built-in Kustomize support.
Generate ConfigMap from literals
Create config objects as part of the build.