From 3338618a2bd873ae6eac3bb5edc0bb8c2d9c51ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Tue, 15 Nov 2022 13:54:19 +0100 Subject: [PATCH] init go brr --- apps/templates/traefik.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/templates/traefik.yaml b/apps/templates/traefik.yaml index eed9d13..a47d811 100644 --- a/apps/templates/traefik.yaml +++ b/apps/templates/traefik.yaml @@ -69,6 +69,7 @@ spec: port: 80 expose: false protocol: TCP + redirectTo: websecure websecure: port: 443 expose: false @@ -92,6 +93,17 @@ spec: enabled: true type: NodePort + deployment: + initContainers: + #The "volume-permissions" init container is required if you run into permission issues. + #Related issue: https://github.com/traefik/traefik/issues/6825 + - name: volume-permissions + image: busybox:1.35 + command: ["sh", "-c", "touch /data/acme.json && chmod -Rv 600 /data/* && chown 0:0 /data/acme.json"] + volumeMounts: + - name: data + mountPath: /data + certResolvers: cloudflare: email: me@roxedus.dev