Files
kube/clusters/base/apps/homeassistant/helmrelease.yaml
T

76 lines
1.7 KiB
YAML

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: homeassistant
namespace: homeassistant
spec:
interval: 30m
chartRef:
kind: OCIRepository
name: homeassistant
values:
controllers:
app:
strategy: Recreate
pod:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
app:
image:
repository: ghcr.io/home-assistant/home-assistant
tag: "2026.7.4"
env:
TZ: Europe/Moscow
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
spec:
periodSeconds: 10
failureThreshold: 30 # HA is sloooow to start
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 1Gi
service:
app:
controller: app
ports:
http:
port: 8123
ingress:
app:
className: traefik
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: p.aggtaa.com
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- secretName: homeassistant-tls
hosts:
- p.aggtaa.com
persistence:
config:
type: persistentVolumeClaim
accessMode: ReadWriteOnce
size: 10Gi
storageClass: longhorn
retain: true
globalMounts:
- path: /config