126 lines
3.3 KiB
YAML
126 lines
3.3 KiB
YAML
|
---
|
||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||
|
kind: HelmRelease
|
||
|
metadata:
|
||
|
name: home-assistant
|
||
|
spec:
|
||
|
interval: 30m
|
||
|
chart:
|
||
|
spec:
|
||
|
chart: app-template
|
||
|
version: 3.4.0
|
||
|
sourceRef:
|
||
|
kind: HelmRepository
|
||
|
name: bjw-s
|
||
|
namespace: flux-system
|
||
|
install:
|
||
|
remediation:
|
||
|
retries: 3
|
||
|
upgrade:
|
||
|
cleanupOnFail: true
|
||
|
remediation:
|
||
|
strategy: rollback
|
||
|
retries: 3
|
||
|
dependsOn:
|
||
|
- name: rook-ceph-cluster
|
||
|
namespace: rook-ceph
|
||
|
- name: volsync
|
||
|
namespace: volsync-system
|
||
|
values:
|
||
|
controllers:
|
||
|
home-assistant:
|
||
|
annotations:
|
||
|
reloader.stakater.com/auto: "true"
|
||
|
containers:
|
||
|
app:
|
||
|
image:
|
||
|
repository: ghcr.io/onedr0p/home-assistant
|
||
|
tag: 2024.9.3@sha256:ac61cfbee43e15863570f83a76059b97a740cc97af26766541b56b5186cf2b00
|
||
|
env:
|
||
|
TZ: America/Chicago
|
||
|
HASS_HTTP_TRUSTED_PROXY_1: 10.1.1.40/24
|
||
|
HASS_HTTP_TRUSTED_PROXY_2: 10.244.0.0/16
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: home-assistant-secret
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: false
|
||
|
readOnlyRootFilesystem: true
|
||
|
capabilities: { drop: ["ALL"] }
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: 10m
|
||
|
limits:
|
||
|
memory: 2Gi
|
||
|
code-server:
|
||
|
image:
|
||
|
repository: ghcr.io/coder/code-server
|
||
|
tag: 4.93.1@sha256:c69e398d1b64589b3b77a7becfd03f4ec524982def20e6bffbb51b1b839e72ba
|
||
|
args: [
|
||
|
"--auth", "none",
|
||
|
"--user-data-dir", "/config/.vscode",
|
||
|
"--extensions-dir", "/config/.vscode",
|
||
|
"--port", "12321",
|
||
|
"/config"
|
||
|
]
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: 10m
|
||
|
limits:
|
||
|
memory: 512Mi
|
||
|
defaultPodOptions:
|
||
|
securityContext:
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 568
|
||
|
runAsGroup: 568
|
||
|
fsGroup: 568
|
||
|
fsGroupChangePolicy: OnRootMismatch
|
||
|
seccompProfile: { type: RuntimeDefault }
|
||
|
service:
|
||
|
app:
|
||
|
controller: home-assistant
|
||
|
ports:
|
||
|
http:
|
||
|
port: 8123
|
||
|
code-server:
|
||
|
port: 12321
|
||
|
ingress:
|
||
|
app:
|
||
|
annotations:
|
||
|
className: internal-nginx
|
||
|
hosts:
|
||
|
- host: hass.jahanson.tech
|
||
|
paths:
|
||
|
- path: /
|
||
|
service:
|
||
|
identifier: app
|
||
|
port: http
|
||
|
code-server:
|
||
|
annotations:
|
||
|
className: internal-nginx
|
||
|
hosts:
|
||
|
- host: hass-code.jahanson.tech
|
||
|
paths:
|
||
|
- path: /
|
||
|
service:
|
||
|
identifier: app
|
||
|
port: code-server
|
||
|
persistence:
|
||
|
config:
|
||
|
existingClaim: home-assistant
|
||
|
globalMounts:
|
||
|
- path: /config
|
||
|
logs:
|
||
|
type: emptyDir
|
||
|
globalMounts:
|
||
|
- path: /config/logs
|
||
|
tts:
|
||
|
type: emptyDir
|
||
|
globalMounts:
|
||
|
- path: /config/tts
|
||
|
tmp:
|
||
|
type: emptyDir
|
||
|
globalMounts:
|
||
|
- path: /tmp
|