k8wiz
Kustomize
Easy
Commands

Which command prints the built output of a kustomization directory with kubectl, without applying it?

Select your answer:

Show answer and explanation

Answer: kubectl kustomize <dir>

Explanation

'kubectl kustomize <dir>' prints the built YAML, like the standalone 'kustomize build <dir>'. kubectl has included Kustomize since version 1.14, though the bundled version can be older than the standalone release.