-
Notifications
You must be signed in to change notification settings - Fork 0
/
jupyter_config.yaml
73 lines (68 loc) · 2.01 KB
/
jupyter_config.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
# file: jupyter_config.yaml
initContainers:
- name: clone_git
image: alpine
command: ['git', 'clone', 'https://github.com/pangeo-data/pangeo-custom-jupyterhub-templates.git','/tmp/data']
volumeMounts:
- name: custom-templates
mountPath: /tmp/data
jupyterhub:
singleuser:
cmd: ['start-singleuser.sh']
extraEnv:
EXTRA_PIP_PACKAGES: >-
GCSFUSE_BUCKET:
storage:
extraVolumes:
- name: fuse
hostPath:
path: /dev/fuse
extraVolumeMounts:
- name: fuse
mountPath: /dev/fuse
cloudMetadata:
enabled: true
cpu:
limit: 4
guarantee: 1
memory:
limit: 14G
guarantee: 4G
hub:
extraConfig:
customPodHook: |
from kubernetes import client
def modify_pod_hook(spawner, pod):
pod.spec.containers[0].security_context = client.V1SecurityContext(
privileged=True,
capabilities=client.V1Capabilities(
add=['SYS_ADMIN']
)
)
return pod
c.KubeSpawner.modify_pod_hook = modify_pod_hook
c.JupyterHub.logo_file = '/usr/local/share/jupyter/hub/static/custom/images/logo.png'
c.JupyterHub.template_paths = ['/usr/local/share/jupyter/hub/custom_templates/',
'/usr/local/share/jupyter/hub/templates/']
image:
name: jupyterhub/k8s-hub
tag: v0.6
extraVolumes:
- name: custom-templates
emptyDir: {}
extraVolumeMounts:
- mountPath: /usr/local/share/jupyter/hub/custom_templates
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/templates"
- mountPath: /usr/local/share/jupyter/hub/static/custom
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/assets"
cull:
enabled: true
users: false
timeout: 1200
every: 600
# this section specifies the IP address for pangeo
proxy:
service:
loadBalancerIP: