home-automation

This commit is contained in:
2026-03-30 17:32:38 +00:00
parent fe7c811d87
commit a58eb4e6bf
15 changed files with 610 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: home-assistant-config
namespace: home-assistant
spec:
accessModes:
- ReadWriteMany
storageClassName: cephfs-hyper
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: home-assistant
namespace: home-assistant
spec:
replicas: 1
selector:
matchLabels:
app: home-assistant
template:
metadata:
labels:
app: home-assistant
spec:
containers:
- name: home-assistant
image: ghcr.io/home-assistant/home-assistant:stable
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8123
volumeMounts:
- name: config
mountPath: /config
env:
- name: TZ
value: Europe/Berlin
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
memory: 1Gi
volumes:
- name: config
persistentVolumeClaim:
claimName: home-assistant-config
---
apiVersion: v1
kind: Service
metadata:
name: home-assistant
namespace: home-assistant
spec:
ipFamilies:
- IPv6
- IPv4
ipFamilyPolicy: PreferDualStack
selector:
app: home-assistant
ports:
- name: http
port: 8123
protocol: TCP
targetPort: 8123
sessionAffinity: None
type: ClusterIP
---