Skip to content

Commit 226af29

Browse files
authored
Merge pull request 2i2c-org#8700 from yuvipanda/rollout-earthscope
Roll-out per-group quota policy to earthscope prod
2 parents cdb1337 + 5f4adaf commit 226af29

2 files changed

Lines changed: 36 additions & 45 deletions

File tree

config/clusters/earthscope/common.values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ basehub:
2020
# This uses custom ids from auth0, so we can't use our default
2121
# emails as access
2222
add_staff_user_ids_to_admin_users: false
23+
proxy:
24+
chp:
25+
networkPolicy:
26+
egress:
27+
- to:
28+
- podSelector:
29+
matchLabels:
30+
app.kubernetes.io/name: jupyterhub
31+
app.kubernetes.io/component: hub
32+
ports:
33+
- port: 9000
2334
hub:
2435
image:
2536
# Usage quotas 0.1.2 and fancy-profiles 0.6.0
@@ -157,6 +168,31 @@ basehub:
157168
window: 30
158169
intersection: max
159170
failover_open: true
171+
policy:
172+
- resource: memory
173+
limit:
174+
value: 5000
175+
unit: GiB-hours
176+
window: 30
177+
scope:
178+
group:
179+
- mem-sm
180+
- resource: memory
181+
limit:
182+
value: 10000
183+
unit: GiB-hours
184+
window: 30
185+
scope:
186+
group:
187+
- mem-md
188+
- resource: memory
189+
limit:
190+
value: 50000
191+
unit: GiB-hours
192+
window: 30
193+
scope:
194+
group:
195+
- mem-lg
160196
service:
161197
extraPorts:
162198
- port: 9000

config/clusters/earthscope/staging.values.yaml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,6 @@ basehub:
1818
refresh_pre_spawn: true
1919
admin_groups:
2020
- geolab-admin
21-
UsageQuotaManager:
22-
scope_backup_strategy:
23-
empty:
24-
resource: memory
25-
limit:
26-
value: 2500
27-
unit: GiB-hours
28-
window: 30
29-
intersection: max
30-
policy:
31-
- resource: memory
32-
limit:
33-
value: 5000
34-
unit: GiB-hours
35-
window: 30
36-
scope:
37-
group:
38-
- mem-sm
39-
- resource: memory
40-
limit:
41-
value: 10000
42-
unit: GiB-hours
43-
window: 30
44-
scope:
45-
group:
46-
- mem-md
47-
- resource: memory
48-
limit:
49-
value: 50000
50-
unit: GiB-hours
51-
window: 30
52-
scope:
53-
group:
54-
- mem-lg
5521
loadRoles:
5622
dask-users:
5723
scopes:
@@ -70,17 +36,6 @@ basehub:
7036
singleuser:
7137
extraEnv:
7238
SCRATCH_BUCKET: s3://earthscope-scratch-staging/$(JUPYTERHUB_USER)
73-
proxy:
74-
chp:
75-
networkPolicy:
76-
egress:
77-
- to:
78-
- podSelector:
79-
matchLabels:
80-
app.kubernetes.io/name: jupyterhub
81-
app.kubernetes.io/component: hub
82-
ports:
83-
- port: 9000
8439

8540
jupyterhub-home-nfs:
8641
eks:

0 commit comments

Comments
 (0)