-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
219 lines (215 loc) · 5.47 KB
/
Copy pathvalues.yaml
File metadata and controls
219 lines (215 loc) · 5.47 KB
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
hub:
config:
GitHubOAuthenticator:
allowed_organizations:
- eco4cast
scope:
- read:org
oauth_callback_url: https://eco4cast.nrp-nautilus.io/hub/oauth_callback
KubeSpawner:
k8s_api_request_timeout: 600
environment:
SHELL: /usr/bin/bash
AWS_S3_ENDPOINT: "rook-ceph-rgw-nautiluss3.rook"
AWS_HTTPS: "false"
AWS_PUBLIC_ENDPOINT: "s3-west.nrp-nautilus.io"
JupyterHub:
admin_access: true
admin_users:
- cboettig
# set to github or cilogon
authenticator_class: github
image:
name: quay.io/yuvipanda/z2jh-hub-with-fancy-profiles
tag: z2jh-v4.0.0-fancy-profiles-sha-2ad902d
extraConfig:
01-enable-fancy-profiles: |
from jupyterhub_fancy_profiles import setup_ui
setup_ui(c)
service:
type: ClusterIP
annotations: {}
ports:
nodePort:
loadBalancerIP:
deploymentStrategy:
type: Recreate
db:
type: sqlite-pvc
pvc:
accessModes:
- ReadWriteOnce
storage: 10Gi
storageClassName: rook-ceph-block
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 2
memory: 512Mi
networkPolicy:
enabled: false
proxy:
service:
type: ClusterIP
chp:
resources:
limits:
cpu: "10"
memory: 10Gi
requests:
cpu: "2"
memory: 512Mi
singleuser:
startTimeout: 3600
uid: 0
fsGid: 100
lifecycleHooks:
postStart:
exec:
command: ["/bin/bash", "-c", "if [ -f '/opt/share/start.sh' ]; then /bin/bash '/opt/share/start.sh'; fi"]
# extraEnv:
# GRANT_SUDO: "yes"
extraPodConfig:
securityContext:
fsGroupChangePolicy: "OnRootMismatch"
fsGroup: 100
extraNodeAffinity:
required:
- matchExpressions:
- 'key': 'topology.kubernetes.io/region'
'operator': 'In'
'values': ["us-west"]
extraResource:
limits:
ephemeral-storage: "20Gi"
guarantees:
ephemeral-storage: "20Gi"
cloudMetadata:
blockWithIptables: false
networkPolicy:
enabled: false
storage:
type: none
#type: dynamic
# extraLabels: {}
#extraVolumes: []
#extraVolumeMounts: []
#capacity: 10Gi
#homeMountPath: /home/jovyan
#dynamic:
# storageClass: rook-ceph-block
# pvcNameTemplate: claim-{username}{servername}
# volumeNameTemplate: volume-{username}{servername}
# storageAccessModes: [ReadWriteOnce]
image:
pullPolicy: Always
startTimeout: 3600
cpu:
limit: 10
guarantee: 1
memory:
limit: 10G
guarantee: 10G
cmd: null
defaultUrl: "/lab"
profileList:
- display_name: "Choose your environment and resources"
default: true
profile_options:
01-image:
display_name: Environment
# Dynamic image building requires binderhub
dynamic_image_building:
enabled: False
unlisted_choice:
enabled: True
display_name: "Custom image"
display_name_in_choices: "Specify an existing docker image"
description_in_choices: "Use a pre-existing docker image from a public docker registry"
validation_regex: "^.+:.+$"
validation_message: "Must be a publicly available docker image, of form <image-name>:<tag>"
kubespawner_override:
image: "{value}"
choices:
01-cpu:
display_name: CPU
description: General purpose Python + R environment
kubespawner_override:
image: "gitlab-registry.nrp-nautilus.io/cboettig/binder:latest"
02-gpu:
display_name: GPU
description: CUDA environment
kubespawner_override:
image: "ghcr.io/rocker-org/cuda:latest"
extra_resource_limits:
nvidia.com/gpu: "1"
02-ide:
display_name: IDE
choices:
lab:
display_name: Jupyter
kubespawner_override:
default_url: /lab
vscode:
display_name: VSCode
kubespawner_override:
default_url: /vscode
rstudio:
display_name: RStudio
kubespawner_override:
default_url: /rstudio
03-resource_allocation:
display_name: Resource Allocation
choices:
mem_8:
display_name: 8 GB RAM, 2 CPU
kubespawner_override:
mem_guarantee: 8G
mem_limit: 8G
cpu_request: 2
cpu_limit: 2
default: true
mem_16:
display_name: 16 GB RAM, 4 CPU
kubespawner_override:
mem_guarantee: 16G
mem_limit: 16G
cpu_request: 4
cpu_limit: 4
mem_32:
display_name: 32 GB RAM, 16 CPU
kubespawner_override:
mem_guarantee: 32G
mem_limit: 32G
cpu_request: 16
cpu_limit: 16
scheduling:
userScheduler:
enabled: false
userPlaceholder:
enabled: false
# prePuller relates to the hook|continuous-image-puller DaemonsSets
prePuller:
hook:
enabled: false
continuous:
enabled: false
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: haproxy
hosts: ["eco4cast.nrp-nautilus.io"]
pathSuffix: ''
tls:
- hosts:
- eco4cast.nrp-nautilus.io
cull:
enabled: true
users: true
removeNamedServers: true
timeout: 3600
every: 6000
concurrency: 10
maxAge: 0