Kustomize
https://gyazo.com/258c078a5b25fa4b79dacb652291cd73
Kustomize - Kubernetes native configuration management
kubernetes-sigs/kustomize: Customization of kubernetes YAML configurations
kustomization.yaml · The Kubectl Book 日本語訳
KRM
複数環境の Kubernetes の環境差分の簡単にする。
base マニフェストに patch を当てる。
Docker Compose では docker-compose.override.ymlに当たる。
kubectl では -k オプションでサポートされている。
fields
transformers
generators
meta
helm chart を管理できる
kustomize/examples/chart.md at master · kubernetes-sigs/kustomize · GitHub
Samples
code: kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# https
- github.com/argoproj/argo-cd/manifests/cluster-install
# ssh
- git@github.com:github.com/argoproj/argo-cd.git/manifests/crds?ref=v1.1.2
git config に以下の設定がされていると、上記より優先される
code: (bash)
git config --global url."https://${user}:${password}@github.com:".insteadOf git@github.com:
Reference
20,000+行のmanifestをリファクタリングして分かったKustomizeの美しきアーキテクチャと拡張性 / Kustomize deep dive - Speaker Deck
Kustomize Best Practices
「Kustomize」超入門――複数環境の重過ぎKubernetesマニフェスト、どう管理すればいいのか:Cloud Nativeチートシート(2) - @IT