mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 15:37:44 +02:00

| datasource | package | from | to | | ---------- | ------------------------------ | -------- | -------- | | docker | ghcr.io/onedr0p/home-assistant | 2023.9.2 | 2023.9.3 |
117 lines
3.0 KiB
YAML
117 lines
3.0 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: 1.5.1
|
|
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:
|
|
initContainers:
|
|
01-init-db:
|
|
image: ghcr.io/auricom/postgres-init:15.4
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom: &envFrom
|
|
- secretRef:
|
|
name: home-assistant-secret
|
|
controller:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
image:
|
|
repository: ghcr.io/onedr0p/home-assistant
|
|
tag: 2023.9.3@sha256:d6e4c153f71b544e0e216706beda9511e106d535f96a0fce75500efa7cbee01d
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
POSTGRES_HOST: ${POSTGRES_HOST}
|
|
POSTGRES_DB: home_assistant
|
|
envFrom: *envFrom
|
|
service:
|
|
main:
|
|
type: LoadBalancer
|
|
loadBalancerIP: ${CLUSTER_LB_HASS}
|
|
externalTrafficPolicy: Local
|
|
ports:
|
|
http:
|
|
port: 8123
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
ingressClassName: "nginx"
|
|
annotations:
|
|
hajimari.io/icon: mdi:home-assistant
|
|
hosts:
|
|
- host: &host "hass.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
- host: &host2 "home-assistant.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
- *host2
|
|
probes:
|
|
liveness:
|
|
enabled: false
|
|
readiness:
|
|
enabled: false
|
|
startup:
|
|
enabled: false
|
|
podSecurityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
fsGroup: 0
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
securityContext:
|
|
privileged: true
|
|
podAnnotations:
|
|
secret.reloader.stakater.com/reload: *app
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: hass-config
|
|
usb:
|
|
enabled: true
|
|
type: hostPath
|
|
hostPath: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5503731323735171A241-if00
|
|
hostPathType: CharDevice
|
|
mountPath: /dev/ttyUSB0
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 100Mi
|
|
limits:
|
|
memory: 750Mi
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- {
|
|
key: "feature.node.kubernetes.io/custom-rflink",
|
|
operator: In,
|
|
values: ["true"],
|
|
}
|