Start traefik outside interface from scratch on 8080 and 8443

I am trying to get the standard traefik outside web(secure) ports from k3s installation to 8080 and 8443.
I tried following helm override:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    additionalArguments:
      - "--entrypoints.web.address=:8080"
      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
      - "--entrypoints.web.http.redirections.entryPoint.scheme=https"
      - "--entrypoints.websecure.address=:8443"
  • create directory /var//lib/rancher/k3s/server/manifests/
  • create file /var/lib/rancher/k3s/server/manifests/traefik-config.yaml with the content above
  • Install k3s with curl…

But that does not have the expected effect.

Also installing k3s with --disable traefik and then install the helm charts with the config override set does not have any effect.

I wonder if I am making a mistake in thinking.

My strategy is to create a cluster on productive systems running other web servers and develop all pods/services and test them on 8080/8443. After all is running I would like to disable the old web servers and revert the traefik ports to 80/443 again.

Ok found it out by myself: extracted the values.yml from the traefik helm tarball, changed the ports and included it via helm install traefik traefiktarball -f values.yml