What is kustomize?
How can you use kustomize?
kubectl apply -k < kustomize-directory >
While having inside a kustomization.yaml
Why is kustomize used?
What are basic folders used by kustomize and what do they contain?
What does the kustomization.yaml file contain?
Show an example for a kustomization.yaml
resources:
- deployment.yaml
- service.yaml
commonLabels:
app: mykustomapp
commonAnnotations:
app: mykustom-annotations
namePrefix:
kustom-
nameSuffix:
-v1
configMapGenerator:
- name: mykustom-map
env: config.properties
Show an example for an overlay implementation
Via folder structure with patch-files.
Folder structure:
– overlays
|– dev
|– config.properties
|– kustomization.yaml
|– replicas.yaml
kustomization.yaml
namespace: prod
patches:
- replicas.yaml
configMapGenerator:
- name: mykustom-map
env: config.properties
How do you take a loot at the kustomize file that is going to be applied?
‘kubectl kustomize’