Files
homeAssistant/deploy/app/statefulset.yaml
T
2026-07-24 12:46:19 +00:00

48 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
nodeSelector:
kubernetes.io/hostname: casa-mini-minion-01
tolerations:
- key: "infra.limbosolutions.com/dedicated"
operator: "Equal"
value: "casa-mini-minion-01"
effect: "NoSchedule"
containers:
- name: home-assistant
### Maintained by flux - Image Update Automation
image: homeassistant/home-assistant:latest@sha256:5a531753cea96444200158fc2b0ac7ccd739291ec50414877b396de6e0bb29b3 # {"$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: "1Gi"
cpu: "1000m"
volumes:
- name: home-assistant-config
persistentVolumeClaim:
claimName: home-assistant-config