https://rancher.com/ logo
Title
g

glamorous-accountant-39131

04/30/2023, 6:54 AM
Hi, I try to follow https://docs.k3s.io/helm#customizing-packaged-components-with-helmchartconfig. I do
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    persistence:
      enabled: true
      storageClass: local-path
    certResolvers:
      letsencrypt:
        dnsChallenge:
          provider: cloudflare
        storage: /data/acme.json
But helm install pod always crash. Logs says it cannot parse value
Error: failed to parse /config/values-10_HelmChartConfig.yaml: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context