k8wiz
Kustomize
Hard
Concepts

labels sets includeSelectors: false and includeTemplates: true. Where do the labels end up?

Select your answer:

Show answer and explanation

Answer: On the resources and their pod templates, but not on selectors

Explanation

includeTemplates adds the labels to spec.template.metadata, so Pods carry them for monitoring or cost tools, while includeSelectors: false keeps them out of selectors that Kubernetes won't let you change.