generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelm-release.yaml
124 lines (124 loc) · 3.21 KB
/
helm-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: home-assistant
namespace: home
spec:
interval: 5m
chart:
spec:
chart: home-assistant
version: 13.2.0
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
install:
createNamespace: true
values:
image:
repository: ghcr.io/home-assistant/home-assistant
tag: 2023.4.2
env:
TZ: "${TIMEZONE}"
envFrom:
- secretRef:
name: home-assistant-secrets
service:
main:
type: LoadBalancer
loadBalancerIP:: "${METALLB_HOME_ASSISTANT_ADDR}"
externalTrafficPolicy: Local
ports:
http:
port: 8123
# annotations:
# metallb.universe.tf/allow-shared-ip: home-assistant
ingress:
main:
enabled: true
ingressClassName: "traefik"
annotations:
# external-dns.alpha.kubernetes.io/target: "ipv4.${SECRET_DOMAIN}"
# external-dns/is-public: "true"
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
hosts:
- host: "hass.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
persistence:
config:
enabled: true
existingClaim: home-assistant-config-v1
metrics:
enabled: false
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
# probes:
# liveness:
# enabled: false
# readiness:
# enabled: false
# startup:
# enabled: false
# mariadb:
# enabled: true
# image:
# repository: bitnami/mariadb
# tag: 10.6.7-debian-10-r70
# architecture: standalone
# auth:
# database: home-assistant
# username: home-assistant
# password: home-assistant-pass
# rootPassword: home-assistantrootpass
# existingSecret:
# primary:
# persistence:
# enabled: true
# storageClass: cstor-csi-disk
# postgresql:
# enabled: false
podAnnotations:
secret.reloader.stakater.com/reload: home-assistant-secrets
addons:
codeserver:
enabled: true
image:
repository: docker.io/codercom/code-server
tag: 4.21.2
env:
TZ: "${TIMEZONE}"
workingDir: "/config"
# git:
# deployKeySecret: home-assistant-code-server-secret
args:
- --auth
- "none"
- --user-data-dir
- "/config/.vscode"
- --extensions-dir
- "/config/.vscode"
ingress:
enabled: true
ingressClassName: "traefik"
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
traefik.ingress.kubernetes.io/router.middlewares: "networking-internal-only@kubernetescrd"
hosts:
- host: "hass-code.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
volumeMounts:
- name: config
mountPath: /config
resources:
requests:
cpu: 100m
memory: 1000Mi
limits:
memory: 2500Mi