[k8s] kustomize ======= ###### tags: `kubernetes` :::success + helps customizing config files ==in a template free way==. + provides a number of handy methods ==like generators== to make customization easier. + ==uses patches== to introduce environment specific changes on an already *existing standard config file* without disturbing it. ::: ![](https://i.imgur.com/B50bobs.png =600x) ![](https://i.imgur.com/eEeaLxs.png =600x) ``` ├── base │ ├── deployment.yaml │ ├── kustomization.yaml │ └── service.yaml └── overlays ├── dev │ ├── deployment.yaml │ ├── kustomization.yaml │ └── namespace.yaml └── prod ├── deployment.yaml ├── kustomization.yaml └── namespace.yaml ``` ```shell= kubectl apply -k overlays/dev kubectl apply -k overlays/prod ``` # reference + [kustomize-examples](https://github.com/boltops-tools/kustomize-examples)