Skip to content

Commit f0cc74f

Browse files
committed
opensci, sciencecore: setup admin-sa and a persistent bucket
1 parent e94e63c commit f0cc74f

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

config/clusters/opensci/sciencecore.values.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
userServiceAccount:
2+
enabled: true
3+
annotations:
4+
eks.amazonaws.com/role-arn: arn:aws:iam::211125293633:role/opensci-sciencecore
5+
adminServiceAccount:
6+
enabled: true
7+
annotations:
8+
eks.amazonaws.com/role-arn: arn:aws:iam::211125293633:role/opensci-sciencecore-admin-sa
9+
110
jupyterhub:
211
ingress:
312
hosts:
@@ -27,7 +36,12 @@ jupyterhub:
2736
funded_by:
2837
name: ""
2938
url: ""
39+
singleuserAdmin:
40+
serviceAccountName: admin-sa
3041
singleuser:
42+
extraEnv:
43+
SCRATCH_BUCKET: s3://opensci-scratch-sciencecore/$(JUPYTERHUB_USER)
44+
PERSISTENT_BUCKET: s3://opensci-persistent-sciencecore/$(JUPYTERHUB_USER)
3145
profileList:
3246
- display_name: "Only Profile Available, this info is not shown in the UI"
3347
slug: only-choice

terraform/aws/projects/opensci.tfvars

+16-9
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,28 @@ user_buckets = {
88
"scratch-staging" : {
99
"delete_after" : 7
1010
},
11-
"scratch" : {
11+
"scratch-sciencecore" : {
1212
"delete_after" : 7
1313
},
14+
"persistent-sciencecore" : {
15+
"delete_after" : null
16+
},
1417
}
1518

1619

1720
hub_cloud_permissions = {
1821
"staging" : {
19-
requestor_pays : true,
20-
bucket_admin_access : ["scratch-staging"],
21-
extra_iam_policy : ""
22+
"user-sa" : {
23+
bucket_admin_access : ["scratch-staging"],
24+
},
2225
},
23-
"prod" : {
24-
requestor_pays : true,
25-
bucket_admin_access : ["scratch"],
26-
extra_iam_policy : ""
26+
"sciencecore" : {
27+
"user-sa" : {
28+
bucket_admin_access : ["scratch-sciencecore"],
29+
bucket_readonly_access : ["persistent-sciencecore"],
30+
},
31+
"admin-sa" : {
32+
bucket_admin_access : ["scratch-sciencecore", "persistent-sciencecore"],
33+
},
2734
},
28-
}
35+
}

0 commit comments

Comments
 (0)