Skip to content

Commit

Permalink
Merge pull request 2i2c-org#4158 from consideRatio/pr/unam-scratch
Browse files Browse the repository at this point in the history
catalystproject-latam, unam: setup scratch bucket for james to use
  • Loading branch information
consideRatio authored May 30, 2024
2 parents a01fca5 + 362f9dc commit cddf87b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
14 changes: 14 additions & 0 deletions config/clusters/catalystproject-latam/unam.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
userServiceAccount:
annotations:
# singleuser.networkPolicy.egressAllowRules.cloudMetadataServer=true and
# singleuser.cloudMetadata.blockWithIptables=false are set for so that users
# can work against the scratch bucket using this GCP service account
iam.gke.io/gcp-service-account: [email protected]

jupyterhub:
ingress:
hosts: [unam.latam.catalystproject.2i2c.cloud]
Expand All @@ -24,6 +31,13 @@ jupyterhub:
- nselem
- miguel-mx
singleuser:
networkPolicy:
egressAllowRules:
cloudMetadataServer: true
cloudMetadata:
blockWithIptables: false
extraEnv:
SCRATCH_BUCKET: gs://latam-scratch-unam/$(JUPYTERHUB_USER)
profileList:
- display_name: Jupyter SciPy Notebook
description: Python environment
Expand Down
15 changes: 14 additions & 1 deletion terraform/gcp/projects/catalystproject-latam.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,17 @@ notebook_nodes = {
},
}

user_buckets = {}
user_buckets = {
// unam's scratch bucket was setup for James Munroe specifically to copy misc
// data over for the community (https://2i2c.freshdesk.com/a/tickets/1588)
"scratch-unam" : {
"delete_after" : 7,
},
}

hub_cloud_permissions = {
"unam" : {
bucket_admin_access : ["scratch-unam"],
hub_namespace : "unam",
},
}

0 comments on commit cddf87b

Please sign in to comment.