-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdevel_dataset.yaml
256 lines (229 loc) · 6.12 KB
/
devel_dataset.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
244
245
246
247
248
249
250
251
252
253
254
255
256
---
data:
#############################################################################
### Default system setup
# admin
- !User
id: u-1
ext_id: [email protected]
password: admin
is_admin: True
# worker
- !User
id: u-2
ext_id: worker@pebbles
password: worker
is_admin: True
# default workspace
- !Workspace
id: ws-0
name: System.default
cluster: local_kubernetes
# associate admin with default workspace
- !WorkspaceMembership
workspace_id: ws-0
user_id: u-1
is_owner: True
is_manager: True
#############################################################################
### ApplicationTemplates
# example Jupyter template + application in public workspace
- !ApplicationTemplate
id: et-jupyter-1
name: Example
description: Jupyter in local k8s
application_type: jupyter
is_enabled: True
attribute_limits:
- name: maximum_lifetime
min: 0
max: 43200
- name: memory_gib
min: 0
max: 3600
base_config:
args: jupyter {{jupyter_interface}} --NotebookApp.token='' --NotebookApp.base_url='/notebooks/{{session_id}}' --NotebookApp.allow_origin='*'
environment_vars: ''
image: quay.io/jupyter/minimal-notebook:latest
labels:
- python
- jupyter
maximum_lifetime: 3600
memory_gib: 0.25
port: 8888
volume_mount_path: /home/jovyan
# second template, Jupyter data science
- !ApplicationTemplate
id: et-jupyter-2
name: Example Data Science
description: Jupyter data science in local k8s
application_type: jupyter
is_enabled: True
attribute_limits:
- name: maximum_lifetime
min: 0
max: 43200
- name: memory_gib
min: 0
max: 8
base_config:
args: jupyter {{jupyter_interface}} --NotebookApp.token='' --NotebookApp.base_url='/notebooks/{{session_id}}' --NotebookApp.allow_origin='*'
environment_vars: ''
image: quay.io/jupyter/datascience-notebook:latest
labels:
- analytics
- python
- jupyter
maximum_lifetime: 3600
memory_gib: 0.25
port: 8888
show_password: true
volume_mount_path: /home/jovyan
# Template for local RStudio
- !ApplicationTemplate
id: et-rstudio-1
name: RStudio
description: RStudio in local k8s
application_type: rstudio
is_enabled: True
attribute_limits:
- name: maximum_lifetime
min: 0
max: 43200
- name: memory_gib
min: 0
max: 8
base_config:
environment_vars: 'DISABLE_AUTH=true'
image: docker.io/rocker/rstudio:latest
labels:
- data analytics
maximum_lifetime: 3600
memory_gib: 0.25
port: 8787
volume_mount_path: /home/rstudio
proxy_rewrite: nginx
#############################################################################
### Applications
- !Application
id: e-1
name: Jupyter minimal notebook
description: Standard minimal Jupyter notebook
template_id: et-jupyter-1
workspace_id: ws-0
labels:
- data analytics
- python
- jupyter
maximum_lifetime: 3600
is_enabled: True
application_type: jupyter
attribute_limits:
- name: maximum_lifetime
min: 0
max: 43200
- name: memory_gib
min: 0
max: 8
base_config:
args: jupyter {{jupyter_interface}} --NotebookApp.token='' --NotebookApp.base_url='/notebooks/{{session_id}}' --NotebookApp.allow_origin='*'
environment_vars: ''
image: quay.io/jupyter/minimal-notebook:latest
labels:
- analytics
- python
- jupyter
maximum_lifetime: 3600
memory_gib: 0.25
port: 8888
volume_mount_path: /home/jovyan
config:
jupyter_interface: lab
download_method: http-get
download_url: https://www.csc.fi/
- !Application
id: e-2
name: RStudio
description: RStudio
template_id: et-rstudio-1
workspace_id: ws-0
labels:
- data analytics
maximum_lifetime: 3600
is_enabled: True
application_type: rstudio
attribute_limits:
- name: maximum_lifetime
min: 0
max: 43200
- name: memory_gib
min: 0
max: 8
base_config:
environment_vars: 'DISABLE_AUTH=true'
image: docker.io/rocker/rstudio:latest
labels:
- data analytics
maximum_lifetime: 3600
memory_gib: 0.25
port: 8787
volume_mount_path: /home/rstudio
proxy_rewrite: nginx
config:
download_method: none
#############################################################################
### Normal user with no extra workspace memberships
- !User
id: u-user-1
ext_id: [email protected]
password: user-1
- !WorkspaceMembership
workspace_id: ws-0
user_id: u-user-1
#############################################################################
### MOOC user with no workspace memberships
- !User
id: mooc-user-1
ext_id: [email protected]
password: mooc-user-1
annotations:
- key: pebbles.csc.fi/taint
value: low_trust
#############################################################################
### User owner-1 with one Workspace and one manager user
- !User
id: u-owner-1
ext_id: [email protected]
password: owner-1
workspace_quota: 2
- !WorkspaceMembership
workspace_id: ws-0
user_id: u-owner-1
- !Workspace
id: ws-1
name: Workspace 1
cluster: local_kubernetes
- !WorkspaceMembership
workspace_id: ws-1
user_id: u-owner-1
is_owner: True
is_manager: True
- !User
id: u-manager-1
ext_id: [email protected]
password: manager-1
- !WorkspaceMembership
workspace_id: ws-1
user_id: u-manager-1
is_owner: False
is_manager: True
#############################################################################
### User owner-2 with no Workspaces, just quota
- !User
id: u-owner-2
ext_id: [email protected]
password: owner-2
workspace_quota: 2
- !WorkspaceMembership
workspace_id: ws-0
user_id: u-owner-2