https://rancher.com/ logo
#k3s
Title
# k3s
s

steep-branch-9388

02/07/2023, 3:18 PM
Hello! By default Traefik uses a default certificate. I try to supply my own with
kubectl create secret tls mycert -n myns --cert=mychain.pem --key=mykey.key
and refer to it in
/var/lib/rancher/k3s/server/manifests/traefik-config.yaml
Copy code
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    extraVolumeMounts:
      - name: ssl
        mountPath: /ssl
    extraVolumes:
      - name: ssl
        secret:
          secretName: mycert
Does this look fine? Do you know working examples for k3s + custom traefik certificates?
179 Views