-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcommon.yaml
106 lines (100 loc) · 3.03 KB
/
common.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
nfsPVC:
enabled: true
nfs:
serverIP: 10.247.79.74
jupyterhub:
custom:
admin:
extraVolumeMounts:
- name: home
mountPath: /srv/homes
scheduling:
userScheduler:
nodeSelector:
hub.jupyter.org/pool-name: core-pool-2023-12-21
proxy:
chp:
nodeSelector:
hub.jupyter.org/pool-name: core-pool-2023-12-21
traefik:
nodeSelector:
hub.jupyter.org/pool-name: core-pool-2023-12-21
hub:
nodeSelector:
hub.jupyter.org/pool-name: core-pool-2023-12-21
config:
loadRoles:
# datahub staff
datahub-staff:
description: Enable admin for datahub staff
# this role provides permissions to...
scopes:
- admin-ui
- admin:groups
- admin:users
- admin:servers
- read:roles
- read:hub
- access:servers
# this role will be assigned to...
groups:
- course::1524699::group::all-admins
## Data 8, Spring 2024
#course-staff-N:
# description: Enable course staff to view and access servers.
# # this role provides permissions to...
# scopes:
# - admin-ui
# - list:users!group=course::N
# - admin:servers!group=course::N
# - access:servers!group=course::N
# # this role will be assigned to...
# groups:
# - course::N::enrollment_type::teacher
# - course::N::enrollment_type::ta
# Data 8, Spring 2024, https://github.com/berkeley-dsep-infra/datahub/issues/5358
course-staff-1532352:
# description: Enable course staff to view and access servers.
# # this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1532352
- admin:servers!group=course::1532352
- access:servers!group=course::1532352
# # this role will be assigned to...
groups:
- course::1532352::enrollment_type::teacher
- course::1532352::enrollment_type::ta
singleuser:
extraFiles:
# DH-216 Removing QtPDF, QtPNG as per Data 8 GSI inputs
remove-exporters:
mountPath: /etc/jupyter/jupyter_notebook_config.py
stringData: |
c.QtPDFExporter.enabled = False
c.QtPNGExporter.enabled = False
c.WebPDFExporter.enabled = False
extraEnv:
# Unset NotebookApp from hub/values. Necessary for recent lab versions.
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
nodeSelector:
hub.jupyter.org/pool-name: data8-pool
defaultUrl: /tree
storage:
type: static
static:
pvcName: home-nfs-v3
subPath: "{username}"
cpu:
# https://github.com/berkeley-dsep-infra/datahub/issues/2966
guarantee: 0.05
limit: 1
memory:
guarantee: 1G
limit: 1G
custom:
group_profiles:
# DataHub Infrastructure staff
# https://bcourses.berkeley.edu/courses/1524699/groups#tab-80607
course::1524699::group::all-admins:
admin: true