infrastructure/dependencies/traefik-config.yaml

56 lines
1.3 KiB
YAML
Raw Normal View History

2023-12-08 18:12:01 +01:00
# scp dependencies/traefik-config.yaml root@[ip]:/var/lib/rancher/k3s/server/manifests/traefik-config.yaml
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
hostNetwork: true
2024-03-29 15:13:00 +01:00
ports:
websecure:
tls:
enabled: true
web:
redirectTo:
port: websecure
2023-12-08 18:12:01 +01:00
deployment:
2023-12-11 17:14:11 +01:00
securityContext:
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
initContainers:
- name: volume-permissions
image: traefik
command:
[
"sh",
"-c",
"touch /data/acme.json; chown 65532 /data/acme.json; chmod -v 600 /data/acme.json",
]
securityContext:
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
volumeMounts:
- name: traefik
mountPath: /data
2023-12-08 18:12:01 +01:00
providers:
kubernetesCRD:
allowCrossNamespace: true
persistence:
enabled: true
name: traefik
accessMode: ReadWriteOnce
size: 128Mi
storageClass: longhorn
path: /data
annotations:
app: traefik
certResolvers:
letsencrypt:
email: help@nocodelytics.com
httpChallenge:
entryPoint: "web"
storage: /data/acme.json