Kubernetes YAML Kustomize and CRDs/Minimal kustomization.yaml

List resource YAML files managed together.

Section: Kustomize Basics

Minimal kustomization.yaml

yaml
yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - deployment.yaml
  - service.yaml
  - ingress.yaml
Explanation

Kustomize customizes Kubernetes objects through a kustomization file and is supported by kubectl.

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 Kustomize Basics
Apply a kustomization directory
Use kubectl's built-in Kustomize support.
OpenIn sheetbashsame section
Render kustomization output
See final YAML before applying.
OpenIn sheetbashsame section
Set namespace and common labels
Apply shared metadata to all resources.
OpenIn sheetyamlsame section
Rewrite image tags in overlay
Update images without editing base manifests.
OpenIn sheetyamlsame section
Patch replicas via overlay
Set environment-specific replica count.
OpenIn sheetyaml1 tag match
Generate ConfigMap from literals
Create config objects as part of the build.
OpenIn sheetyaml1 tag match