IntermediateLesson 21 of 35
Helm and Kustomize
Reuse and customise manifests across environments.
Helm is a package manager: charts are templated YAML plus values.
bash
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install db bitnami/postgresql --set auth.postgresPassword=dev
helm upgrade db bitnami/postgresql -f values-prod.yaml
helm rollback db 1
helm template ./mychart | kubectl apply -f -Kustomize (built into kubectl -k) patches plain YAML without templates:
yaml
# overlays/prod/kustomization.yaml
resources: [../../base]
replicas:
- name: web
count: 5
images:
- name: web
newTag: '1.4.2'