Files
auricom-home-cluster/kubernetes/apps/default/home-assistant/app/helmrelease.yaml
feisar-bot 34f92ba79d ⬆️ Update image ghcr.io/auricom/postgres-init to 15.5
| datasource | package                       | from | to   |
| ---------- | ----------------------------- | ---- | ---- |
| docker     | ghcr.io/auricom/postgres-init | 15.4 | 15.5 |
2023-11-16 20:26:33 +01:00

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.2.0
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.5@sha256:a337602f0dc11ee0e7f819ede78fa1a13e40a52adad737353efe10ce265a4b36
pullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: home-assistant-secret
containers:
main:
image:
repository: ghcr.io/onedr0p/home-assistant
tag: 2023.11.2@sha256:29a2a48386bcd182c97229892ef123f4ee9d4b1dead7e5ea31a2ecc85fa13ab3
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