This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
helmfile.yaml
243 lines (213 loc) · 6.68 KB
/
helmfile.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
helmDefaults:
wait: true
timeout: 1200
force: true
# TODO: Common configuration
# Needs Helmfile 0.43.2 but will reduce duplication
# templates:
# default_jupyterhub: &default_jupyterhub
# chart: jupyterhub/jupyterhub
# # Wed, 23 Jan 2019 15:37:58 +0000
# version: 0.8-d470e4f
repositories:
- name: jupyterhub
url: https://jupyterhub.github.io/helm-chart/
releases:
######################################################################
# JupyterHub staging
- name: jupyterhub-staging
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-staging
labels:
deployment: staging
application: staging
values:
- values/jupyterhub-config.yaml
{{ range .Environment.Values.jupyterhub_staging_overrides }}
- {{ . }}
{{ end }}
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
- name: singleuser.extraEnv.IDR_PASSWORD
value: {{ requiredEnv "SECRET_IDR_PASSWORD" }}
######################################################################
# JupyterHub training
- name: jupyterhub-training
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-training
labels:
deployment: production
application: training
values:
- values/jupyterhub-config.yaml
- values/jupyterhub-training.yaml
{{ range .Environment.Values.jupyterhub_training_overrides }}
- {{ . }}
{{ end }}
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
######################################################################
# JupyterHub ITR production
- name: jupyterhub-itr-public
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-itr-public
labels:
deployment: production
application: itr-public
values:
- values/jupyterhub-config.yaml
- values/jupyterhub-itr-public.yaml
{{ range .Environment.Values.jupyterhub_itr_overrides }}
- {{ . }}
{{ end }}
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
- name: singleuser.extraEnv.IDR_PASSWORD
value: {{ requiredEnv "SECRET_IDR_PASSWORD" }}
######################################################################
# JupyterHub production
- name: jupyterhub-public
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-public
labels:
deployment: production
application: public
values:
- values/jupyterhub-config.yaml
- values/jupyterhub-public.yaml
{{ range .Environment.Values.jupyterhub_public_overrides }}
- {{ . }}
{{ end }}
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
- name: singleuser.extraEnv.IDR_PASSWORD
value: {{ requiredEnv "SECRET_IDR_PASSWORD" }}
- name: jupyterhub-vae
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-vae
labels:
deployment: production
application: vae
values:
- values/jupyterhub-config.yaml
- values/jupyterhub-vae.yaml
{{ range .Environment.Values.jupyterhub_vae_overrides }}
- {{ . }}
{{ end }}
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
- name: singleuser.extraEnv.IDR_PASSWORD
value: {{ requiredEnv "SECRET_IDR_PASSWORD" }}
- name: auth.github.clientId
value: {{ requiredEnv "SECRET_GITHUB_CLIENTID" }}
- name: auth.github.clientSecret
value: {{ requiredEnv "SECRET_GITHUB_CLIENTSECRET" }}
- name: jupyterhub-vae-shared-storage
namespace: jupyterhub-vae
chart: ./charts/jupyterhub-shared-scratch
labels:
deployment: production
application: vae
values:
{{ range .Environment.Values.jupyterhub_vae_shared_storage_overrides }}
- {{ . }}
{{ end }}
- name: jupyterhub-vae-aai
chart: jupyterhub/jupyterhub
# Wed, 23 Jan 2019 15:37:58 +0000
version: 0.8-d470e4f
namespace: jupyterhub-vae-aai
labels:
deployment: production
application: vae-aai
values:
- values/jupyterhub-config.yaml
- values/jupyterhub-vae-aai.yaml
set:
- name: proxy.secretToken
value: {{ requiredEnv "SECRET_JUPYTERHUB_PROXY_TOKEN" }}
- name: singleuser.extraEnv.IDR_PASSWORD
value: {{ requiredEnv "SECRET_IDR_PASSWORD" }}
- name: hub.extraEnv.OAUTH_CLIENT_ID
value: {{ requiredEnv "SECRET_AAI_CLIENTID" }}
- name: hub.extraEnv.OAUTH_CLIENT_SECRET
value: {{ requiredEnv "SECRET_AAI_CLIENTSECRET" }}
######################################################################
# Website
- name: idr-analysis-website
namespace: idr-analysis-website
chart: ./charts/idr-analysis-website
labels:
deployment: production
application: website
values:
{{ range .Environment.Values.idr_analysis_website_overrides }}
- {{ . }}
{{ end }}
######################################################################
# Monitoring
- name: prometheus-auth
namespace: monitoring
chart: ./charts/kubernetes-secret
labels:
deployment: production
application: monitoring
set:
- name: data.auth
value: {{ requiredEnv "SECRET_PROMETHEUS_AUTH_HTPASSWD" }}
# To create this value:
# htpasswd -bc auth username password
# base64 auth
- name: prometheus
namespace: monitoring
chart: stable/prometheus
version: 8.4.7
labels:
deployment: production
application: monitoring
values:
- values/prometheus.yaml
{{ range .Environment.Values.prometheus_overrides }}
- {{ . }}
{{ end }}
- name: grafana
namespace: monitoring
chart: stable/grafana
version: 1.25.4
labels:
deployment: production
application: monitoring
values:
- values/grafana.yaml
{{ range .Environment.Values.grafana_overrides }}
- {{ . }}
{{ end }}
set:
- name: env.GF_AUTH_GITHUB_CLIENT_ID
value: {{ requiredEnv "SECRET_GRAFANA_GITHUB_CLIENTID" }}
- name: env.GF_AUTH_GITHUB_CLIENT_SECRET
value: {{ requiredEnv "SECRET_GRAFANA_GITHUB_SECRET" }}
# To get the auto-generated Grafana admin password:
# kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 -d ; echo
environments:
default:
values:
- production.yaml
minikube:
values:
- minikube.yaml