forked from billimek/k8s-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome-assistant.yaml
127 lines (127 loc) · 2.96 KB
/
home-assistant.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
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: home-assistant
namespace: default
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 1.3.2
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
interval: 15m
maxHistory: 3
install:
createNamespace: true
remediation:
retries: 3
timeout: 10m
upgrade:
cleanupOnFail: true
remediation:
retries: 3
timeout: 10m
uninstall:
keepHistory: false
values:
image:
repository: homeassistant/home-assistant
tag: 2023.2.5
initContainers:
init-db:
image: ghcr.io/onedr0p/postgres-initdb:14.7
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: home-assistant-secret
env:
TZ: "America/New_York"
envFrom:
- secretRef:
name: home-assistant-secret
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
service:
main:
type: LoadBalancer
loadBalancerIP: 10.0.6.56
ports:
http:
port: 8123
ingress:
main:
enabled: true
ingressClassName: "nginx"
hosts:
- host: "hass.eviljungle.com"
paths:
- path: /
tls:
- hosts:
- hass.eviljungle.com
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: true
persistence:
config:
enabled: true
storageClass: "rook-ceph-block"
accessMode: ReadWriteOnce
size: "10Gi"
hass-gcp-sa-json:
enabled: true
type: secret
name: home-assistant-gcp-sa-secret
subPath: home-assistant-4d8d1f2ca10f.json
mountPath: /config/home-assistant-4d8d1f2ca10f.json
readOnly: true
resources:
requests:
cpu: 100m
memory: 512M
limits:
memory: 2048M
tolerations:
- key: "arm"
operator: "Exists"
addons:
codeserver:
enabled: true
image:
repository: codercom/code-server
tag: 4.10.0
workingDir: "/config"
args:
- --user-data-dir
- "/config/.vscode"
- --auth
- "none"
env:
TZ: America/New_York
HASS_SERVER: http://localhost:8123
ingress:
enabled: true
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/auth-url: "https://auth.eviljungle.com/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: https://auth.eviljungle.com/oauth2/start
hosts:
- host: hass-vscode.eviljungle.com
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- hass-vscode.eviljungle.com
volumeMounts:
- name: config
mountPath: /config