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 enabled: true
tls: tls:
enabled: false enabled: true
cameras: cameras:
Stairway: Stairway:

View File

@@ -5,7 +5,7 @@ metadata:
namespace: frigate namespace: frigate
annotations: annotations:
kubernetes.io/ingress.class: nginx 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 cert-manager.io/cluster-issuer: letsencrypt
spec: spec:
rules: rules:

View File

@@ -1,4 +1,3 @@
---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@@ -12,6 +11,9 @@ data:
- 10.0.0.0/8 - 10.0.0.0/8
- fd00::/8 - fd00::/8
- 2001:470:7116:a::/64 - 2001:470:7116:a::/64
auth_header:
username_header: X-authentik-username
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@@ -41,6 +43,39 @@ spec:
labels: labels:
app: home-assistant app: home-assistant
spec: 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: containers:
- name: home-assistant - name: home-assistant
image: ghcr.io/home-assistant/home-assistant:stable image: ghcr.io/home-assistant/home-assistant:stable
@@ -50,9 +85,6 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config mountPath: /config
- name: configmap
mountPath: /config/configuration.yaml
subPath: configuration.yaml
env: env:
- name: TZ - name: TZ
value: Europe/Berlin value: Europe/Berlin
@@ -62,6 +94,7 @@ spec:
memory: 512Mi memory: 512Mi
limits: limits:
memory: 1Gi memory: 1Gi
volumes: volumes:
- name: config - name: config
persistentVolumeClaim: persistentVolumeClaim:
@@ -89,4 +122,3 @@ spec:
targetPort: 8123 targetPort: 8123
sessionAffinity: None sessionAffinity: None
type: ClusterIP type: ClusterIP
---