Interview Prep/Helm/Schema, Helmfile, Argo CD & Secrets

Show a realistic `helmfile.yaml`.

IntermediateConceptSchema, Helmfile, Argo CD & Secrets
Answer
repositories:
  - name: ingress-nginx
    url: https://kubernetes.github.io/ingress-nginx
  - name: shack
    url: 123456789012.dkr.ecr.ap-south-1.amazonaws.com/charts
    oci: true

environments:
  dev:
    values: [env/dev.yaml]
  prod:
    values: [env/prod.yaml]
---
releases:
  - name: ingress-nginx
    namespace: ingress-nginx
    chart: ingress-nginx/ingress-nginx
    version: 4.11.3
  - name: shop
    namespace: shop
    chart: shack/shop
    version: 1.4.0
    needs: [ingress-nginx/ingress-nginx]
    values:
      - values/shop-common.yaml
      - values/shop-{{ .Environment.Name }}.yaml
    secrets:
      - secrets/shop-{{ .Environment.Name }}.yaml
helmfile -e prod diff
helmfile -e prod apply

In Helmfile 1.x, files that use Go templating should carry the .gotmpl extension (helmfile.yaml.gotmpl).

All Helm questions Roadmap: Helm

More on Schema, Helmfile, Argo CD & Secrets