fix: traefik

This commit is contained in:
auricom
2021-08-09 01:50:30 +02:00
parent d55cce0e88
commit 296a956c03
73 changed files with 1167 additions and 969 deletions

View File

@@ -20,9 +20,11 @@ spec:
image:
repository: koenkk/zigbee2mqtt
tag: 1.21.0
env:
TZ: Europe/Paris
ZIGBEE2MQTT_DATA: /data
config:
homeassistant: true
device_options:
@@ -61,18 +63,18 @@ spec:
new_api: true
securityContext:
privileged: true
service:
main:
annotations:
prometheus.io/probe: "true"
prometheus.io/protocol: "http"
ingress:
main:
enabled: true
ingressClassName: "nginx"
ingressClassName: "traefik"
annotations:
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local./api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
hosts:
@@ -80,6 +82,11 @@ spec:
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "zigbee.${SECRET_CLUSTER_DOMAIN}"
secretName: "${SECRET_CLUSTER_CERTIFICATE_DEFAULT}"
persistence:
config:
enabled: true
@@ -90,6 +97,7 @@ spec:
type: hostPath
hostPath: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
hostPathType: CharDevice
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: