k8wiz
Kustomize
Easy
Commands

Which flag makes kubectl apply a kustomization directory?

Select your answer:

Show answer and explanation

Answer: -k, or --kustomize

Explanation

'kubectl apply -k <dir>' builds the directory with Kustomize and applies the result. '-f <dir>' would try to apply each file as it is, including kustomization.yaml, which isn't an object the cluster knows.