Build a kustomization without applying it.

Section: Kustomize with kubectl

Render kustomization

bash
bash
kubectl kustomize overlays/prod
Explanation

Build a kustomization without applying it.

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 with kubectl
Apply kustomization
Apply resources from a kustomization directory.
OpenIn sheetbashsame section
Delete kustomized resources
Delete resources generated by a kustomization.
OpenIn sheetbashsame section
Diff kustomized resources
Preview the changes from a kustomization.
OpenIn sheetbashsame section
Apply and prune kustomization
Apply a kustomization and prune matching managed objects.
OpenIn sheetbashsame section
Generate configmap YAML dry-run
Generate YAML that can be committed into Kustomize overlays.
OpenIn sheetbashsame section
List pod names
Print all pod names in a namespace.