Skip to content

Commit 081ab0d

Browse files
authored
Fix traefik2 installation configs for k3s (#83)
* Fix traefik2 configs for k3s installation Why? - Cloudflare DNS API Token and Email pairs didn't work - For ingressroute config, middlewares expected as map and not string Details: - For Cloudflare key names: https://doc.traefik.io/traefik/https/acme/#providers - For middleware configuration: https://doc.traefik.io/traefik/middlewares/overview/#configuration-example * revert changes to cloudflare api key name * revert changes to cloudflare api key name
1 parent 79e30e7 commit 081ab0d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

reference_files/traefik2-k3s-rancher/config-ingress-route/traefik-chart-values.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ports:
3333
web:
3434
redirectTo: websecure
3535
env:
36-
- name: CF_DNS_API_TOKEN
36+
- name: CF_DNS_API_TOKEN # or CF_API_KEY, see for more details - https://doc.traefik.io/traefik/https/acme/#providers
3737
valueFrom:
3838
secretKeyRef:
3939
key: apiKey
@@ -72,4 +72,4 @@ service:
7272
spec:
7373
loadBalancerIP: "192.168.100.240" # this should be your Metal LB IP
7474
loadBalancerSourceRanges: []
75-
externalIPs: []
75+
externalIPs: []

reference_files/traefik2-k3s-rancher/config/traefik-chart-values.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ports:
4444
web:
4545
redirectTo: websecure
4646
env:
47-
- name: CF_DNS_API_TOKEN
47+
- name: CF_DNS_API_TOKEN # or CF_API_KEY, see for more details - https://doc.traefik.io/traefik/https/acme/#providers
4848
valueFrom:
4949
secretKeyRef:
5050
key: apiKey
@@ -109,4 +109,4 @@ service:
109109
# runAsUser: 65532
110110

111111
# podSecurityContext:
112-
# fsGroup: 65532
112+
# fsGroup: 65532

reference_files/traefik2-k3s-rancher/config/traefik-dashboard-ingressroute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
- match: Host(`traefik.example.com`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
1212
kind: Rule
1313
middlewares:
14-
- traefik-dashboard-basicauth
14+
- name: traefik-dashboard-basicauth
1515
services:
1616
- name: api@internal
17-
kind: TraefikService
17+
kind: TraefikService

0 commit comments

Comments
 (0)