You want to redirect all trafic from http to https? You got a K3S Cluster with traefik installed? Fear not my friend.
I almost started crying, no matter what, it didn’t work. Finally I found the solution. We just create a HelmChartConfig
which basically injects config into a helm chart, and add 3 lines to it. It will look something like this:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
ports:
web:
redirectTo:
port: "websecure"
Now just apply this config and everything will be good. 🙂
Leave a Reply