Last active
January 5, 2023 14:28
-
-
Save vvdaal/be697989618eb1b3c87167157aff015a to your computer and use it in GitHub Desktop.
This shows a working example of a traefik-config.yaml override for k3s, this should be stored in /var/lib/rancher/k3s/server/manifests and allows letsencrypt via a web httpChallenge. The resolver is named letsencryptweb.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
namespace: apps | |
name: example-ingress | |
spec: | |
entryPoints: | |
- websecure | |
routes: | |
- match: Host(`your-own-awesome-domain.com`) | |
kind: Rule | |
services: | |
- name: your-awesome-service | |
port: port-of-your-service | |
tls: | |
certResolver: letsencryptweb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: helm.cattle.io/v1 | |
kind: HelmChartConfig | |
metadata: | |
name: traefik | |
namespace: kube-system | |
spec: | |
valuesContent: |- | |
logs: | |
access: | |
enabled: true | |
ports: | |
web: | |
port: 80 | |
websecure: | |
port: 443 | |
persistence: | |
enabled: true | |
certResolvers: | |
letsencryptweb: | |
email: "yourownvalidemail" | |
httpChallenge: | |
entrypoint: "web" | |
storage: /data/acme.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation: