Kustomize – Templating in Kubernetes
Those files will NEVER (EVER) be touched, we will just apply customization above them to create new resources definitions
In this example, we will work with a and a resources:
We wil add a new file inside this folder, named :
This file will be the central point of your base and it describes the resources you use. For example, this file will mount the value as environement variables
And, like before, we add this to the
You can see the used is automatically modified to follow the name defined by Kustomize (1)
The same logic exists with ConfigMap with hash at the end to allow redeployement of your app if ConfigMap changes. We see in these examples how we can leverage the power of Kustomize to define your Kubernetes files without even using a templating system.
Source: blog.stack-labs.com