generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelmrelease.yaml
228 lines (219 loc) · 5.99 KB
/
helmrelease.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
---
# 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: &app home-assistant
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 3.7.3
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 3
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
strategy: rollback
uninstall:
keepHistory: false
values:
controllers:
homeassistant:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
enabled: false # don't block homeassistant from starting if postgres is down
image:
repository: ghcr.io/home-operations/postgres-init
tag: 17.4.0@sha256:a9f405688344a8a6f718e2c344438342ad21540986aeb5ab5fa781831eb2c597
envFrom:
- secretRef:
name: home-assistant-secret
containers:
app:
image:
repository: ghcr.io/home-operations/home-assistant
tag: 2025.4.4@sha256:dc7bb47eb6b3f62405c185cbc633771527b9710530023f7177d99a09eb858fc4
env:
TZ: ${TIMEZONE}
POSTGRES_HOST: postgres17-rw.database.svc.cluster.local
POSTGRES_DB: homeassistant
HASS_IP: 10.0.81.4
envFrom: &envFrom
- secretRef:
name: home-assistant-secret
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
resources:
requests:
cpu: 95m
memory: 1Gi
limits:
memory: 4Gi
codeserver:
image:
repository: ghcr.io/coder/code-server
tag: 4.99.3-39
env:
TZ: ${TIMEZONE}
GIT_AUTHOR_NAME: "Adam Petrovic"
envFrom: *envFrom
args:
- --auth
- "none"
- --user-data-dir
- "/config/.vscode"
- --extensions-dir
- "/config/.vscode"
- /config
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
resources:
requests:
cpu: 152m
memory: 1Gi
limits:
memory: 3Gi
pod:
annotations:
k8s.v1.cni.cncf.io/networks: |
[{
"name":"multus-trusted",
"namespace": "network",
"ips": ["10.0.10.99/21"]
}]
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
service:
app:
nameOverride: *app
controller: homeassistant
type: LoadBalancer
annotations:
external-dns.alpha.kubernetes.io/hostname: hass-direct.${SECRET_DOMAIN}
io.cilium/lb-ipam-ips: 10.0.81.4
ports:
http:
enabled: true
port: 8123
homekit:
enabled: true
protocol: TCP
port: 21065
codeserver:
controller: homeassistant
ports:
http:
port: 8080
ingress:
app:
enabled: true
className: internal
hosts:
- host: &host "hass.${SECRET_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
external:
enabled: true
className: external
annotations:
external-dns.alpha.kubernetes.io/target: "external.${SECRET_PUBLIC_DOMAIN}"
hosts:
- host: &publicHost "hass.${SECRET_PUBLIC_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *publicHost
codeserver:
enabled: true
className: internal
hosts:
- host: &codeHost "hass-code.${SECRET_DOMAIN}"
paths:
- path: /
service:
identifier: codeserver
port: http
tls:
- hosts:
- *codeHost
persistence:
config:
enabled: true
existingClaim: home-assistant
music:
type: nfs
server: ${SECRET_NFS_DOMAIN}
path: /volume2/music
globalMounts:
- path: /music
deploy-key:
type: secret
name: home-assistant-secret
defaultMode: 420 # 644 (octal) in decimal
advancedMounts:
homeassistant:
codeserver:
- path: /home/coder/.ssh/id_rsa
subPath: GH_DEPLOY_KEY
dot-gitconfig:
enabled: true
type: secret
name: home-assistant-secret
advancedMounts:
homeassistant:
codeserver:
- path: /home/coder/.gitconfig
subPath: GIT_CONFIG
defaultMode: 0700
ssh-knownhosts:
enabled: true
type: secret
name: home-assistant-secret
advancedMounts:
homeassistant:
codeserver:
- path: /home/coder/.ssh/known_hosts
subPath: KNOWN_HOSTS
defaultMode: 0700
tesla-proxy-tls:
enabled: true
type: secret
name: tesla-proxy-tls
globalMounts:
- path: /config/tesla-proxy
readOnly: true