Files
smart-home/k8s/deployment.yaml
T
bart 9125a3fa3f
Sync Smart Home Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
feat(deployment): start homeassistant in cluster (replicas: 1)
2026-10-18 12:13:05 +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: 1
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