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.
More easy Kustomize questions
- Which field lists the manifest files and directories a kustomization builds from?
- What is an overlay in Kustomize?
- What does namePrefix: dev- do?
- What does the namespace field in a kustomization.yaml do?
- How do you change an image tag in every Deployment without writing a patch?
- Which field generates a ConfigMap from files or literal values?