Files
homeAssistant/deploy/app/statefulset.yaml
T
2026-06-20 02:44:44 +00:00

46 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: home-assistant
labels:
app: home-assistant
spec:
replicas: 1
selector:
matchLabels:
app: home-assistant
template:
metadata:
labels:
app: home-assistant
spec:
dnsPolicy: ClusterFirstWithHostNet # ensures pod uses cluster DNS (CoreDNS) for service discovery even with host networking
hostNetwork: true
nodeName: casa # force deploy to master node cluster
tolerations:
- key: "node-role.kubernetes.io/control-plane" # allow installation on control-plane
operator: "Exists"
effect: "NoSchedule"
containers:
- name: home-assistant
### Maintained by flux - Image Update Automation
image: homeassistant/home-assistant:latest@sha256:adb3341e31e03e0048e60d8c1cf952e118a381ae258bb921d3da12a3b27bf0c2 # {"$imagepolicy": "home-assistant:home-assistant"}
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Europe/Lisbon
volumeMounts:
- name: home-assistant-config
mountPath: /config
resources:
requests:
memory: "256Mi"
cpu: "400m"
limits:
memory: "724Mi"
cpu: "1000m"
volumes:
- name: home-assistant-config
persistentVolumeClaim:
claimName: home-assistant-config