Transformers
Updated Apr 19, 2022 ·
Overview
Transformers let you apply changes across Kubernetes YAML files without editing each one manually.
- Built into Kustomize
- Help apply consistent changes to all resources
- Avoid repetitive edits in multiple YAML files
Instead of modifying every file, you define transformations once, and Kustomize applies them automatically.
info
You will need a Kubernetes cluster to try out the examples.
To setup a basic cluster, you can use k3d.
Clone the Repository
To try out the examples in the succeeding sections, clone the project repository from GitHub.
- Github repo: joseeden/labs-kustomize
Clone and move into the project directory:
git clone https://github.com/joseeden/labs-kustomize.git
cd code-samples/04-transformers/basic-sample
Project directory structure:
basic-sample
├── base