# K3s traefik configuration override problems

**URL:** <https://forums.suse.com/t/k3s-traefik-configuration-override-problems/37264>\
**Category:** k3s, k3OS, and k3d\
**Created:** [March 14, 2022, 7:28pm UTC](https://forums.suse.com/t/k3s-traefik-configuration-override-problems/37264 "2022-03-14T19:28:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lk7777](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/lk7777/32/8645_2.png) [@lk7777](https://forums.suse.com/u/lk7777)\
**Post date:** [March 14, 2022, 7:28pm UTC](https://forums.suse.com/t/k3s-traefik-configuration-override-problems/37264/1 "2022-03-14T19:28:30Z")

</div>

According to this [document](https://rancher.com/docs/k3s/latest/en/helm/#customizing-packaged-components-with-helmchartconfig) it is possible to override some settings for traefik deployment.

I have created :/var/lib/rancher/k3s/server/manifests/traefik-override.yaml

```auto
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    additionalArguments:
    - "--providers.file.filename=/config/traefik-config.toml"
    - "--entrypoints.mongodb=true"
    ports:
      mongodb:
        port: 27017
        protocol: TCP
    persistence:
      enabled: true
      name: data
      accessMode: ReadWriteOnce
      size: 128Mi
      storageClass: managed-nfs-storage
      path: /data

```

Restarted k3s.service  
“persistence” causes deployment problems

```auto
pod/traefik-554bcf98d6-nz64b 0/1 ContainerCreating 0 9m1s

```

pvc and pv were created but the deployment gets stuck

```auto
kubectl logs pod/helm-install-traefik--1-vrkwn -n kube-system

+ helm_v3 upgrade --set-string global.systemDefaultRegistry= traefik https://10.43.0.1:443/static/charts/traefik-10.3.001.tgz --values /config/values-01_HelmChart.yaml --values /config/values-10_HelmChartConfig.yaml
Error: failed to parse /config/values-10_HelmChartConfig.yaml: error converting YAML to JSON: yaml: line 14: could not find expected ':'

```

Without ‘persistence’ it works (entrypoints and ports).

[traefik helm values](https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml)

And I want to use a dynamic treafik configuration with ConfigMap and it looks like it doesn’t work as well.

Are there any limitations for k3s/traefik installation?

UPDATE:

It is definitely a bug.  
Uninstalled k3s/traefik, installed traefik helm chart with override-values and it works with no issues.
