2024-09-08 02:05:05 +00:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
2024-09-16 00:35:30 +00:00
|
|
|
name: home-assistant
|
2024-09-08 02:05:05 +00:00
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-09-16 00:35:30 +00:00
|
|
|
version: 3.4.0
|
2024-09-08 02:05:05 +00:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
2024-09-16 00:35:30 +00:00
|
|
|
dependsOn:
|
|
|
|
- name: openebs
|
|
|
|
namespace: openebs
|
2024-09-08 02:05:05 +00:00
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
main:
|
|
|
|
containers:
|
2024-09-16 00:35:30 +00:00
|
|
|
app:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/home-assistant
|
2024-11-08 21:02:19 +00:00
|
|
|
tag: 2024.11.1
|
2024-09-16 00:35:30 +00:00
|
|
|
env:
|
|
|
|
TZ: America/New_York #${SERVER_TIMEZONE}
|
|
|
|
HASS_HTTP_TRUSTED_PROXY_1: 192.168.0.0/16
|
|
|
|
HASS_HTTP_TRUSTED_PROXY_2: 10.0.0.0/8
|
|
|
|
HASS_SECRET_URL: &hassHost "hass.thin.seanomik.net" #${SECRET_NEW_DOMAIN}
|
|
|
|
HOME_ASSISTANT__HACS_INSTALL: "true"
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: home-assistant
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
limits:
|
|
|
|
memory: 2Gi
|
|
|
|
code-server:
|
2024-09-08 02:05:05 +00:00
|
|
|
image:
|
2024-09-16 00:35:30 +00:00
|
|
|
repository: ghcr.io/coder/code-server
|
2024-11-12 18:02:11 +00:00
|
|
|
tag: 4.95.2
|
2024-09-16 00:35:30 +00:00
|
|
|
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 }
|
2024-09-08 02:05:05 +00:00
|
|
|
|
|
|
|
service:
|
|
|
|
app:
|
|
|
|
controller: main
|
|
|
|
|
|
|
|
ports:
|
|
|
|
http:
|
2024-09-16 00:35:30 +00:00
|
|
|
port: 8123
|
|
|
|
code-server:
|
|
|
|
port: 12321
|
2024-09-08 02:05:05 +00:00
|
|
|
|
|
|
|
ingress:
|
2024-09-16 00:35:30 +00:00
|
|
|
app:
|
2024-09-08 02:05:05 +00:00
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
#traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
|
|
|
|
2024-09-16 00:35:30 +00:00
|
|
|
className: external
|
2024-09-08 02:05:05 +00:00
|
|
|
hosts:
|
2024-09-16 00:35:30 +00:00
|
|
|
- host: *hassHost
|
2024-09-08 02:05:05 +00:00
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: http
|
2024-09-16 00:35:30 +00:00
|
|
|
code-server:
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
#traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
|
|
|
|
|
|
|
className: internal
|
|
|
|
hosts:
|
|
|
|
- host: "hass-code.internal.thin.seanomik.net"
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: code-server
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
existingClaim: home-assistant-config
|
|
|
|
globalMounts:
|
|
|
|
- path: /config
|
|
|
|
logs:
|
|
|
|
type: emptyDir
|
|
|
|
globalMounts:
|
|
|
|
- path: /config/logs
|
|
|
|
tts:
|
|
|
|
type: emptyDir
|
|
|
|
globalMounts:
|
|
|
|
- path: /config/tts
|
|
|
|
tmp:
|
|
|
|
type: emptyDir
|
|
|
|
globalMounts:
|
|
|
|
- path: /tmp
|