Files
smart-home/k8s/deployment.yaml
T
bart 5c13179324
Sync Smart Home Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
chore(deployment): pause pod (replicas: 0) pending data sync
2026-10-18 11:31:35 +02:00

59 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: homeassistant
namespace: smart-home
labels:
app.kubernetes.io/name: homeassistant
app.kubernetes.io/part-of: smart-home
spec:
replicas: 0
strategy:
type: Recreate
selector:
matchLabels:
app: homeassistant
template:
metadata:
labels:
app: homeassistant
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
kubernetes.io/hostname: vmserver
containers:
- name: homeassistant
image: ghcr.io/home-assistant/home-assistant:2026.9.4
env:
- name: TZ
value: "Europe/Amsterdam"
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 2000m
memory: 4Gi
volumeMounts:
- name: config
mountPath: /config
livenessProbe:
httpGet:
path: /manifest.json
port: 8123
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /manifest.json
port: 8123
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
persistentVolumeClaim:
claimName: homeassistant-config