mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
Basically following an example in the [Traefik Helm Chart documentation](https://github.com/traefik/traefik-helm-chart/blob/master/EXAMPLES.md#provide-default-certificate-with-cert-manager-and-cloudflare-dns)
40 lines
950 B
YAML
40 lines
950 B
YAML
deployment:
|
|
initContainers:
|
|
# The "volume-permissions" init container is required if you run into permission issues.
|
|
# Related issue: https://github.com/traefik/traefik/issues/6972
|
|
- name: volume-permissions
|
|
image: busybox:1.31.1
|
|
command: [ "sh", "-c", "chmod -Rv 600 /data/*" ]
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
|
|
providers:
|
|
kubernetesCRD:
|
|
allowCrossNamespace: true
|
|
kubernetesIngress:
|
|
publishedService:
|
|
enabled: true
|
|
# Need to override path since otherwise the namespace is set as default
|
|
pathOverride: traefik-system/traefik
|
|
|
|
additionalArguments:
|
|
- "--log.level=ERROR"
|
|
- "--api.insecure"
|
|
|
|
ingressRoute:
|
|
dashboard:
|
|
enabled: false
|
|
|
|
persistence:
|
|
enabled: true
|
|
name: data
|
|
accessMode: ReadWriteOnce
|
|
size: 128Mi
|
|
storageClass: cert-storage
|
|
path: /data
|
|
|
|
tlsStore:
|
|
default:
|
|
defaultCertificate:
|
|
secretName: wildcard-stonegarden-dev-tls |