Generate YAML that can be committed into Kustomize overlays.
Section: Kustomize with kubectl
Generate configmap YAML dry-run
bash
bash
kubectl create configmap app-config --from-file=app.env -o yaml --dry-run=clientExplanation
Generate YAML that can be committed into Kustomize overlays.
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
Delete kustomized resources
Delete resources generated by a kustomization.
Apply and prune kustomization
Apply a kustomization and prune matching managed objects.