mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-27 12:33:58 +02:00
109 lines
2.7 KiB
YAML
109 lines
2.7 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app home-assistant
|
|
namespace: default
|
|
spec:
|
|
interval: 15m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 1.4.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 3
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
image:
|
|
repository: ghcr.io/onedr0p/home-assistant
|
|
tag: 2023.4.6@sha256:b61019e4929fb904a2621df70785e4cfe923d61bad82167d23f67823df4d1246
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
POSTGRES_HOST: ${POSTGRES_HOST}
|
|
POSTGRES_DB: home_assistant
|
|
envFrom:
|
|
- secretRef:
|
|
name: *app
|
|
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"],
|
|
}
|