This commit is contained in:
2026-04-01 14:09:41 +00:00
parent fb788a7b11
commit 6802ced0e2
5 changed files with 40 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ data:
enabled: true
tls:
enabled: false
enabled: true
cameras:
Stairway:

View File

@@ -5,7 +5,7 @@ metadata:
namespace: frigate
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
cert-manager.io/cluster-issuer: letsencrypt
spec:
rules:

View File

@@ -1,4 +1,3 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
@@ -12,6 +11,9 @@ data:
- 10.0.0.0/8
- fd00::/8
- 2001:470:7116:a::/64
auth_header:
username_header: X-authentik-username
---
apiVersion: v1
kind: PersistentVolumeClaim
@@ -41,6 +43,39 @@ spec:
labels:
app: home-assistant
spec:
initContainers:
- name: copy-config
image: busybox:1.36
command:
- sh
- -c
- |
mkdir -p /config
cp /src/configuration.yaml /config/configuration.yaml
chmod 0644 /config/configuration.yaml
volumeMounts:
- name: config
mountPath: /config
- name: configmap
mountPath: /src
- name: install-auth-header
image: alpine:3.20
command:
- sh
- -c
- |
set -e
apk add --no-cache git
rm -rf /tmp/hass-auth-header
git clone --depth=1 https://github.com/BeryJu/hass-auth-header /tmp/hass-auth-header
mkdir -p /config/custom_components
rm -rf /config/custom_components/auth_header
cp -r /tmp/hass-auth-header/custom_components/auth_header /config/custom_components/
volumeMounts:
- name: config
mountPath: /config
containers:
- name: home-assistant
image: ghcr.io/home-assistant/home-assistant:stable
@@ -50,9 +85,6 @@ spec:
volumeMounts:
- name: config
mountPath: /config
- name: configmap
mountPath: /config/configuration.yaml
subPath: configuration.yaml
env:
- name: TZ
value: Europe/Berlin
@@ -62,6 +94,7 @@ spec:
memory: 512Mi
limits:
memory: 1Gi
volumes:
- name: config
persistentVolumeClaim:
@@ -88,5 +121,4 @@ spec:
protocol: TCP
targetPort: 8123
sessionAffinity: None
type: ClusterIP
---
type: ClusterIP