mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-01 16:05:55 +02:00

| datasource | package | from | to | | ---------- | ------------------------------ | --------- | --------- | | docker | ghcr.io/onedr0p/home-assistant | 2023.10.5 | 2023.11.0 |
117 lines
3.1 KiB
YAML
117 lines
3.1 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app home-assistant
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.0.3
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
defaultPodOptions:
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
fsGroup: 0
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
nodeSelector:
|
|
nodo.feature.node.kubernetes.io/rflink: "true"
|
|
controllers:
|
|
main:
|
|
type: statefulset
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
initContainers:
|
|
init-db:
|
|
image:
|
|
repository: ghcr.io/auricom/postgres-init
|
|
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
|
|
pullPolicy: IfNotPresent
|
|
envFrom: &envFrom
|
|
- secretRef:
|
|
name: home-assistant-secret
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/onedr0p/home-assistant
|
|
tag: 2023.11.0@sha256:c6711d617afe65530002a8bb2611cbc1b327cca5c3eacdf17dcc037562c74dc2
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
POSTGRES_HOST: ${POSTGRES_HOST}
|
|
POSTGRES_DB: home_assistant
|
|
envFrom: *envFrom
|
|
probes:
|
|
liveness:
|
|
enabled: false
|
|
readiness:
|
|
enabled: false
|
|
startup:
|
|
enabled: false
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 1Gi
|
|
securityContext:
|
|
privileged: true
|
|
statefulset:
|
|
volumeClaimTemplates:
|
|
- name: config
|
|
accessMode: ReadWriteOnce
|
|
size: 10Gi
|
|
storageClass: rook-ceph-block
|
|
globalMounts:
|
|
- path: /config
|
|
service:
|
|
main:
|
|
type: LoadBalancer
|
|
loadBalancerIP: ${CLUSTER_LB_HASS}
|
|
externalTrafficPolicy: Local
|
|
ports:
|
|
http:
|
|
port: 8123
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
hajimari.io/icon: mdi:home-assistant
|
|
hosts:
|
|
- host: &host "hass.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: main
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
usb:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5503731323735171A241-if00
|
|
hostPathType: CharDevice
|
|
globalMounts:
|
|
- path: /dev/ttyUSB0
|