I'm looking to just have HTTPS enabled for the Traefik service, so I don't have to go back after deployment and disable it. Is there a simple way to do this?
I had the same need, so I run the k3s server with --no-deploy=traefik and deploy my own customised helm chart instead with the local modifications I need:
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
namespace: kube-system
name: traefik
spec:
chart: stable/traefik
valuesContent: |-
...
ssl:
enabled: true
enforced: true
...
@dewet22 Thank you -- I will try that. Were you also able to provide the SSL cert/key that way as well?
I had the same need, so I run the k3s server with
--no-deploy=traefikand deploy my own customised helm chart instead with the local modifications I need:
@clarktlaugh Yeah, I use four extra bits in my setup:
For traefik, these are the complete set of values I override in my helm deployment:
loadBalancerIP: 192.168.10.0 #聽provided by metallb, first IP in my /24 iBGP service subnet
externalTrafficPolicy: Local # makes cluster-external traffic appear from the actual IP
rbac:
enabled: true
ssl:
enabled: true
enforced: true
dashboard:
enabled: true
statistics:
recentErrors: 10
domain: traefik.mydomain
ingress:
tls:
- secretName: mydomain-tls
kubernetes:
ingressEndpoint:
useDefaultPublishedService: true # makes traefik map ingress IPs correctly
Closing due to age.
Most helpful comment
@clarktlaugh Yeah, I use four extra bits in my setup:
For traefik, these are the complete set of values I override in my helm deployment: