🧵 Kustomize cheat sheet
Komutlar
kubectl kustomize overlays/prod | Üretilen YAML'ı gör |
kubectl apply -k overlays/prod | Uygula |
kustomize build overlays/prod | kubectl diff -f - | Farkı gör |
kustomize edit set image web=reg/web:2.0 | İmaj etiketi güncelle |
kustomization.yaml
resources:
- ../../base | Temel katman |
namespace: prod | Namespace ata |
replicas:
- name: web
count: 5 | Kopya sayısı |
images:
- name: web
newTag: "2.4.1" | İmaj etiketi |
patches:
- path: limitler.yaml | Yama |
commonLabels:
ortam: prod | Ortak etiket |
configMapGenerator:
- name: cfg
literals: [LOG=info] | ConfigMap üret |