-
Notifications
You must be signed in to change notification settings - Fork 32
/
common.yaml
161 lines (155 loc) · 5.2 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
daskhub:
jupyterhub:
proxy:
# Disable network security policy, perhaps causing upgrade issues.
# https://github.com/pangeo-data/pangeo-cloud-federation/issues/884
chp:
networkPolicy:
enabled: false
traefik:
networkPolicy:
enabled: false
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:
networkPolicy:
# Disable network security policy, perhaps causing upgrade issues.
# https://github.com/pangeo-data/pangeo-cloud-federation/issues/884
enabled: false
# only if using 'latest' or 'master' tags
#image:
# pullPolicy: 'Always'
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"
extraEnv:
PANGEO_SCRATCH_PREFIX: "s3://pangeo-scratch"
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
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': 'Pangeo Cloud',
'pangeo_hub_subtitle': 'aws-uswest.pangeo.io',
'pangeo_welcome': """Welcome to Pangeo Cloud! This JupyterHub lives in the AWS Cloud 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. For information and signup instructions, please visit the <a href="http://pangeo.io/cloud.html">Pangeo Cloud Website</a>. <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>."""
}
extraEnv:
OAUTH2_AUTHORIZE_URL: "https://pangeo.auth0.com/authorize"
OAUTH2_TOKEN_URL: "https://pangeo.auth0.com/oauth/token"
auth:
type: custom
custom:
className: oauthenticator.generic.GenericOAuthenticator
config:
login_service: "Pangeo Login"
token_url: https://pangeo.auth0.com/oauth/token
userdata_url: https://pangeo.auth0.com/oauth/userinfo
userdata_method: GET
username_key: nickname
scope:
- openid
- profile
- email
admin:
access: true
users:
- scottyhq
- salvis2
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