K3S: Built-in Traefik

To configure the built-in Traefik, first we create a new YAML file:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    deployment:
      labels:
        test: one

Apply the new YAML file with kubectl.

To revert back to original config:

kubectl apply -f /var/lib/rancher/k3s/server/manifests/traefik.yaml

References: