-
Notifications
You must be signed in to change notification settings - Fork 32
/
common.yaml
126 lines (124 loc) · 4.75 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
pangeo:
jupyterhub:
scheduling:
userPods:
nodeAffinity:
matchNodePurpose: require
corePods:
nodeAffinity:
matchNodePurpose: require
singleuser:
initContainers:
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "id && chown 1000:1000 /home/jovyan && ls -lhd /home/jovyan"]
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "home/hydro.pangeo.io/{username}"
storage:
type: static
static:
pvcName: home-nfs
subPath: "home/hydro.pangeo.io/{username}"
cloudMetadata:
enabled: true
auth:
github:
org_whitelist:
- pangeo-data
admin:
access: true
users:
- jhamman
- bartnijssen
- arbennett
hub:
resources:
requests:
cpu: "0.25"
memory: 0.5Gi
limits:
cpu: "1.25"
memory: 1Gi
extraConfig:
profile_list: |
c.KubeSpawner.profile_list = [
{
'display_name': 'standard ** CUAHSI Snow Hydrology Students **',
'kubespawner_override': {
'cpu_limit': 1,
'cpu_guarantee': 0.5,
'mem_limit': '6G',
'mem_guarantee': '4G',
}
},
{
'display_name': 'standard (n1-highmem-4 | 4 cores, 24GB)',
'kubespawner_override': {
'cpu_limit': 4,
'cpu_guarantee': 4,
'mem_limit': '24G',
'mem_guarantee': '24G',
}
},
{
'display_name': 'Pangeo Env - standard (n1-highmem-4 | 4 cores, 24GB)',
'kubespawner_override': {
'cpu_limit': 4,
'cpu_guarantee': 4,
'mem_limit': '24G',
'mem_guarantee': '24G',
'image': 'pangeo/pangeo-notebook:latest',
}
},
{
'display_name': 'Pangeo GPU-ML Env - standard (n1-standard-4 | 4 cores, 15GB | 1 GPU)',
'kubespawner_override': {
'cpu_limit': 4,
'cpu_guarantee': 1,
'mem_limit': '15G',
'mem_guarantee': '15G',
'image': 'pangeo/ml-notebook:latest',
'extra_resource_limits': {"nvidia.com/gpu": "1"},
}
},
{
'display_name': 'Pangeo R-Hydro Env',
'kubespawner_override': {
'cpu_limit': 1,
'cpu_guarantee': 1,
'mem_limit': '8G',
'mem_guarantee': '8G',
'image': 'jupyter/r-notebook',
}
},
]
customPodHook: |
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom_templates/']
c.JupyterHub.template_vars = {
'pangeo_hub_title': 'hydro.pangeo.io',
'pangeo_hub_subtitle': 'a community hub for hydrologic research',
'pangeo_welcome': """Welcome to hydro.pangeo.io. This hub lives in Google Cloud region <code>us-central1-b</code>. It is maintained by the <a href="http://pangeo.io">Pangeo project</a> and supported by a grant from the National Science Foundation (NSF award 1740648), which includes a direct award of cloud credits from Google Cloud. The hub's configuration is stored in the github repository <a href="https://github.com/pangeo-data/pangeo-cloud-federation/">https://github.com/pangeo-data/pangeo-cloud-federation/</a>. To provide feedback and report any technical problems, please use the <a href="https://github.com/pangeo-data/pangeo-cloud-federation//issues">github issue tracker</a>."""
}
extraVolumes:
- name: custom-templates
gitRepo:
repository: "https://github.com/pangeo-data/pangeo-custom-jupyterhub-templates.git"
revision: "0c799bb2f880c8b516dcf90e2a90328078d60c25"
extraVolumeMounts:
- mountPath: /usr/local/share/jupyterhub/custom_templates
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/templates"
- mountPath: /usr/local/share/jupyterhub/static/extra-assets
name: custom-templates
subPath: "pangeo-custom-jupyterhub-templates/extra-assets"
homeDirectories:
nfs:
enabled: true
serverPath: "/homes"
# Output from gcloud beta filestore instances describe dev-home --location=us-central1-b
serverIP: 10.171.161.186
serverName: test