-
Notifications
You must be signed in to change notification settings - Fork 65
/
pangeo-hubs.cluster.yaml
175 lines (175 loc) · 6.15 KB
/
pangeo-hubs.cluster.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: pangeo-hubs
provider: gcp
gcp:
key: secrets/pangeo-hubs.json
project: pangeo-integration-te-3eea
cluster: pangeo-hubs-cluster
zone: us-central1-b
support:
config:
grafana:
ingress:
hosts:
# This domain should be updated to just grafana.pangeo.2i2c.cloud
# after the COESSING hub has been brought down and no longer requires
# grafana.pangeo.2i2c.cloud
- pangeo-grafana.pangeo.2i2c.cloud
tls:
- secretName: grafana-tls
hosts:
- pangeo-grafana.pangeo.2i2c.cloud
# Disable the Admissions Validation Webhook and the port is not
# permitted on private GKE clusters
ingress-nginx:
controller:
admissionWebhooks:
enabled: false
hubs:
- name: staging
domain: staging.us-central1-b.gcp.pangeo.io
template: daskhub
auth0:
enabled: false
config:
basehub:
nfs: &staging_nfs
enabled: true
pv:
mountOptions:
- soft
- noatime
# Google FileStore IP
serverIP: 10.229.44.234
# Name of Google Filestore share
baseShareName: /homes/
jupyterhub:
proxy: &staging_jhub_proxy
https:
enabled: false
custom: &staging_jhub_custom
cloudResources:
provider: gcp
gcp:
projectId: pangeo-integration-te-3eea
scratchBucket:
enabled: true
homepage:
templateVars:
org:
name: Pangeo
url: https://pangeo.io
logo_url: "https://raw.githubusercontent.com/pangeo-data/pangeo/master/docs/_static/pangeo_simple_logo.svg"
designed_by:
name: 2i2c
url: https://2i2c.org
operated_by:
name: 2i2c
url: https://2i2c.org
funded_by:
name: NSF EarthCube Program (Award ICER-2026932)
url: "https://www.nsf.gov/awardsearch/showAward?AWD_ID=2026932"
hub:
config:
Authenticator: &staging_jhub_authenticator
admin_users:
- <staff_github_ids>
- rabernat
JupyterHub: &staging_jhub_jupyterhub
authenticator_class: github
GitHubOAuthenticator:
oauth_callback_url: https://staging.us-central1-b.gcp.pangeo.io/hub/oauth_callback
allowed_organizations: &staging_jhub_allowed_orgs
- pangeo-data:us-central1-b-gcp
- 2i2c-org:tech-team
scope: &staging_jhub_scope
- read:org
singleuser: &staging_jhub_singleuser
image:
name: pangeo/pangeo-notebook
tag: bcfacc5
profileList:
# The mem-guarantees are here so k8s doesn't schedule other pods
# on these nodes. They need to be just under total allocatable
# RAM on a node, not total node capacity
- display_name: "Small (1 GB - 4 GB)"
default: true
kubespawner_override:
cpu_limit: 2
cpu_guarantee: 0.3
mem_limit: 4G
mem_guarantee: 1G
node_selector:
node.kubernetes.io/instance-type: n1-standard-4
- display_name: "Medium (4 GB - 8 GB)"
kubespawner_override:
cpu_limit: 2
cpu_guarantee: 1
mem_limit: 8G
mem_guarantee: 4G
node_selector:
node.kubernetes.io/instance-type: n1-standard-8
- display_name: "Large (12 GB - 16 GB)"
kubespawner_override:
cpu_limit: 4
cpu_guarantee: 1
mem_limit: 16G
mem_guarantee: 12G
node_selector:
node.kubernetes.io/instance-type: n1-standard-16
- display_name: "ML Image - Large (12 GB - 16 GB)"
description: "https://github.com/pangeo-data/pangeo-docker-images/tree/master/ml-notebook"
kubespawner_override:
image: "pangeo/ml-notebook:master"
cpu_limit: 2
cpu_guarantee: 1
mem_limit: 16G
mem_guarantee: 12G
node_selector:
node.kubernetes.io/instance-type: n1-standard-16
initContainers:
# Need to explicitly fix ownership here, since EFS doesn't do anonuid
- name: volume-mount-ownership-fix
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: "{username}"
dask-gateway: &staging_dask_gateway
gateway:
backend:
scheduler:
cores:
request: 0.8
limit: 1
memory:
request: 1G
limit: 2G
- name: prod
domain: us-central1-b.gcp.pangeo.io
template: daskhub
auth0:
enabled: false
config:
basehub:
nfs: *staging_nfs
jupyterhub:
proxy: *staging_jhub_proxy
custom: *staging_jhub_custom
hub:
config:
Authenticator: *staging_jhub_authenticator
JupyterHub: *staging_jhub_jupyterhub
GitHubOAuthenticator:
oauth_callback_url: https://us-central1-b.gcp.pangeo.io/hub/oauth_callback
allowed_organizations: *staging_jhub_allowed_orgs
scope: *staging_jhub_scope
singleuser: *staging_jhub_singleuser
dask-gateway: *staging_dask_gateway