What problem do Kustomize common transformations solve
They let you apply the same configuration change across many Kubernetes resources without editing every YAML file by hand
Why is manually adding the same label or name change to many YAML files a bad approach
It does not scale well takes more time and increases the chance of mistakes and config drift
What are Kustomize transformers at a high level
Transformers are features in Kustomize that modify or transform Kubernetes manifests during the build process
What subgroup of transformers is the lecture focused on
The lecture focuses on common transformations
What does the commonLabels transformation do in Kustomize
It adds the same label to all resources processed by that kustomization
What does the namespace transformation do in Kustomize
It places all resources processed by that kustomization into the namespace you specify
What does the namePrefix transformation do in Kustomize
It adds the same prefix to the names of all resources processed by that kustomization
What does the nameSuffix transformation do in Kustomize
It adds the same suffix to the names of all resources processed by that kustomization
What does the commonAnnotations transformation do in Kustomize
It adds the same annotation to all resources processed by that kustomization
Where are common transformations usually declared in Kustomize
They are declared in the kustomization.yaml file
If you set a namespace in kustomization.yaml what resources are affected
All resources imported and processed by that specific kustomization are affected
Why are common transformations useful in larger environments
They let you apply repeated changes consistently across many manifests from one place
What is one example of a useful nameSuffix in an environment setup
A suffix such as dash dev can help distinguish development resources from staging or production resources
What is one example of a useful common label
A label such as org equals KodeKloud can be added to all resources for organization or filtering
What is the key advantage of using transformers instead of manually editing every manifest
You keep changes centralized consistent and easier to maintain as the number of resources grows
Image Controller Example
images:
- name: nginx
newName: haproxy
newTag: 2.4