-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcommon.yaml
161 lines (159 loc) · 5.98 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
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
pangeo:
jupyterhub:
scheduling:
userPods:
nodeAffinity:
matchNodePurpose: require
corePods:
nodeAffinity:
matchNodePurpose: require
# until resolved: https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/1393
prePuller:
continuous:
enabled: false
singleuser:
profileList:
- display_name: "Standard environment"
description: "https://github.com/pangeo-data/pangeo-cloud-federation/tree/staging/deployments/icesat2/image/binder"
default: true
- display_name: "ICESat-2 Hackweek 2020"
description: "https://github.com/ICESAT-2HackWeek/jupyter-image-2020"
kubespawner_override:
image: uwhackweeks/icesat2:latest
- display_name: "Latest Pangeo-notebook"
description: "https://github.com/pangeo-data/pangeo-docker-images/tree/master/pangeo-notebook"
kubespawner_override:
image: pangeo/pangeo-notebook:latest
- display_name: "Latest Base-notebook"
description: "https://github.com/pangeo-data/pangeo-docker-images/tree/master/base-notebook"
kubespawner_override:
image: pangeo/base-notebook:latest
- display_name: "Latest ML-notebook"
description: "https://github.com/pangeo-data/pangeo-docker-images/tree/master/ml-notebook"
kubespawner_override:
image: pangeo/ml-notebook:latest
mem_limit: 60G
mem_guarantee: 25G
environment: {'NVIDIA_DRIVER_CAPABILITIES': 'compute,utility'}
tolerations: [{'key': 'nvidia.com/gpu','operator': 'Equal','value': 'present','effect': 'NoSchedule'}]
extra_resource_limits: {"nvidia.com/gpu": "1"}
serviceAccountName: pangeo
startTimeout: 600
initContainers:
- name: change-volume-mount-permissions
image: busybox
command:
- "sh"
- "-c"
- >
id && chown 1000:1000 /home/jovyan && ls -lhd /home/jovyan ;
id && chown 1000:1000 /srv/shared && ls -lhd /srv/shared ;
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "home/icesat2.pangeo.io/{username}"
- name: jupyterhub-shared
mountPath: /srv/shared
subPath: "icesat2.pangeo.io/shared"
storage:
type: static
static:
pvcName: home-nfs
subPath: "home/icesat2.pangeo.io/{username}"
#requires having run config/shared--nfs.yaml
extraVolumeMounts:
- name: jupyterhub-shared
mountPath: /srv/shared
subPath: "icesat2.pangeo.io/shared"
extraVolumes:
- name: jupyterhub-shared
persistentVolumeClaim:
claimName: shared-nfs
cloudMetadata:
enabled: true
cpu:
guarantee: 2
limit: 4
memory:
guarantee: 7G
limit: 7G
auth:
github:
orgWhitelist:
- "escience-pangeo"
- "uwescience"
- "geohackweek"
- "ICESAT-2HackWeek"
- "pangeo-data"
scopes:
- "read:user"
- "user:email"
- "read:org"
admin:
access: true
users:
- scottyhq
- jhamman
- salvis2
hub:
resources:
requests:
cpu: 0.5
memory: 1G
limits:
cpu: 1.25
memory: 2G
initContainers:
- name: git-clone-templates
image: alpine/git
args:
- clone
- --single-branch
- --branch=master
- --depth=1
- --
- https://github.com/scottyhq/pangeo-custom-jupyterhub-templates.git
- /mnt/template-repo
securityContext:
runAsUser: 0
volumeMounts:
- name: custom-templates
mountPath: /mnt/template-repo
extraVolumes:
- name: custom-templates
emptyDir: {}
extraVolumeMounts:
# Note: subPath is relative to repo root dir
- name: custom-templates
mountPath: /usr/local/share/jupyterhub/custom-templates
subPath: templates
- name: custom-templates
mountPath: /usr/local/share/jupyterhub/static/extra-assets
subPath: extra-assets
extraConfig:
00-template-config: |
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom-templates/']
c.JupyterHub.template_vars = {
'pangeo_hub_title': 'aws-uswest.pangeo.io',
'pangeo_hub_subtitle': 'a community hub for the pangeo project',
'pangeo_welcome': """Welcome to aws-uswest2.pangeo.io, the computational environment for <a href="https://icesat-2hackweek.github.io">Icesat-2 Hackweek</a>! This hub lives in AWS region <code>us-west-2</code>. It is maintained by the <a href="http://pangeo.io">Pangeo project</a> and is supported by <a href="https://github.com/pangeo-data/nasa-access-17">NASA Grant #17-ACCESS17-0003</a> and cloud credits from Amazon. <strong>This is a prototype and should be treated accordingly. We make no promises that the hub will remain active. Do not store passwords or sensitive data in your home directory</strong> Access is currently limited to the <a href="https://github.com/pangeo-data">Pangeo GitHub Organization members</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>."""
}
dask-gateway:
gateway:
backend:
scheduler:
# optimized for t3.medium nodegroup
cores:
request: 0.8
limit: 1
memory:
request: 1G
limit: 2G
homeDirectories:
nfs:
enabled: true
serverPath: "/homes"
serverIP: fs-04b8a8ac.efs.us-west-2.amazonaws.com
serverName: pangeo-efs