forked from billimek/k8s-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome-assistant.yaml
133 lines (133 loc) · 3.14 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
128
129
130
131
132
133
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: home-assistant
namespace: default
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: home-assistant
version: 13.4.2
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: homeassistant/home-assistant
tag: 2022.10.5
env:
TZ: "America/New_York"
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
service:
main:
type: LoadBalancer
loadBalancerIP: 10.0.6.56
ingress:
main:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
hosts:
- host: hass.eviljungle.com
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "hass.eviljungle.com"
prometheus:
serviceMonitor:
enabled: false
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: true
persistence:
config:
enabled: true
storageClass: "rook-ceph-block"
accessMode: ReadWriteOnce
size: "10Gi"
podAnnotations:
backup.velero.io/backup-volumes: config
addons:
codeserver:
enabled: true
image:
repository: codercom/code-server
tag: 4.8.0
workingDir: "/config"
args:
- --user-data-dir
- "/config/.vscode"
- --auth
- "none"
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
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
tolerations:
- key: "arm"
operator: "Exists"
resources:
limits:
memory: 3000Mi
requests:
cpu: 100m
memory: 1000Mi
postgresql:
enabled: true
image:
repository: postgres
tag: '14.1'
auth:
enablePostgresUser: false
username: home-assistant
database: home-assistant
postgresqlDataDir: "/data/pgdata"
shmVolume:
enabled: false
volumePermissions:
enabled: false
primary:
persistence:
enabled: true
storageClass: "rook-ceph-block"
size: 10Gi
mountPath: "/data/"
tolerations:
- key: "arm"
operator: "Exists"
podAnnotations:
backup.velero.io/backup-volumes: data
resources:
limits:
memory: 4000Mi
requests:
memory: 2000Mi
valuesFrom:
- kind: Secret
name: "home-assistant-helm-values"
optional: false