Kustomize
Hard
Concepts
A replacement's target field doesn't exist yet in the target resource. What makes Kustomize add it?
Select your answer:
Show answer and explanation
Answer: options.create: true on that target
Explanation
create defaults to false, so a replacement only writes to fields that already exist. With create: true Kustomize adds the missing field. delimiter and index are for replacing one part of a value.
More hard Kustomize questions
- An overlay sets replicas for a Deployment that a HorizontalPodAutoscaler scales. What happens on each kubectl apply -k?
- A configMapGenerator entry has files: [config/app.properties]. Which key holds the file's content?
- labels sets includeSelectors: false and includeTemplates: true. Where do the labels end up?
- What does the openapi field in a kustomization.yaml provide?
- Two bases included by one overlay both define a ConfigMap named settings in the same namespace. What happens?
- A JSON 6902 patch adds an annotation named example.com/owner. How is that key written in the patch path?