How do you use Helm with Kustomize in Argo CD or kubectl?
AdvancedConceptSchema, Helmfile, Argo CD & Secrets
Answer
Kustomize can inflate charts with its helmCharts field (requires --enable-helm):
# kustomization.yaml
helmCharts:
- name: ingress-nginx
repo: https://kubernetes.github.io/ingress-nginx
version: 4.11.3
releaseName: ingress
namespace: ingress-nginx
valuesFile: values.yaml
patches:
- path: add-annotations.yaml
kustomize build --enable-helm . | kubectl apply -f -
Argo CD supports it with kustomize.buildOptions: --enable-helm. Like Argo CD's Helm support, this is template-only: no release record, no Helm hooks execution.
More on Schema, Helmfile, Argo CD & Secrets
When is `values.schema.json` validated, and can it be skipped?IntermediateHow do you express "password is required only when the internal database is enabled" in a schema?AdvancedWhat is Helmfile?BeginnerShow a realistic `helmfile.yaml`.IntermediateWhat is the difference between `helmfile sync` and `helmfile apply`?IntermediateHow does Argo CD deploy a Helm chart?Advanced