In this training, we will use Kustomize to create and customize an application.
Navigate to the folder
27_kustomize
from CLI, before you get started.
- Check kustomize
kustomize version
- kustomization is the entrypoint for kustomize
cat kustomization.yaml
- patch.yaml is the patch that is going to be overlayed by kustomize
cat patch.yaml
- to see what the patch will change have a look at the base/configmap.yaml
cat base/configmap.yaml
-
Show resources with applied patch. Mark the prefix
training-
for the names of all resources and the new labels applied.kustomize build .
-
Deploy patched resources
kustomize build . | kubectl apply -f -
kustomize build . | kubectl delete -f -