Kustomize
Hard
Concepts
A kustomization sets namespace: team-a and includes a ClusterRole. What happens to the ClusterRole?
Select your answer:
Show answer and explanation
Answer: Nothing, because cluster-scoped resources don't get a namespace
Explanation
Kustomize knows which built-in kinds are cluster-scoped, such as ClusterRole, Namespace and CustomResourceDefinition, and leaves them alone. Namespaced resources get team-a whatever the manifests said.
More hard Kustomize questions
- In a strategic merge patch, what does $patch: replace inside a container's resources map do?
- A patch target sets name: app. Does it also match a Deployment named app-worker?
- A patch changes the metadata.name of its target, and the build fails. What allows the rename?
- Which query parameter of a remote resource URL sets how long Kustomize waits for the fetch?
- A replacement's target field doesn't exist yet in the target resource. What makes Kustomize add it?
- An overlay sets replicas for a Deployment that a HorizontalPodAutoscaler scales. What happens on each kubectl apply -k?