From 812030db7a3a04bdf5b3ac00ea4cc57fb9c75865 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 5 Jul 2024 14:28:51 +0200 Subject: [PATCH] smithsonian: setup access to terraform created scratch bucket --- config/clusters/smithsonian/prod.values.yaml | 8 ++++++++ config/clusters/smithsonian/staging.values.yaml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/config/clusters/smithsonian/prod.values.yaml b/config/clusters/smithsonian/prod.values.yaml index b56b3e8535..11d1b132f8 100644 --- a/config/clusters/smithsonian/prod.values.yaml +++ b/config/clusters/smithsonian/prod.values.yaml @@ -1,4 +1,9 @@ basehub: + userServiceAccount: + enabled: true + annotations: + eks.amazonaws.com/role-arn: arn:aws:iam::969396938818:role/smithsonian-prod + jupyterhub: ingress: hosts: [smithsonian.2i2c.cloud] @@ -9,3 +14,6 @@ basehub: config: GitHubOAuthenticator: oauth_callback_url: https://smithsonian.2i2c.cloud/hub/oauth_callback + singleuser: + extraEnv: + SCRATCH_BUCKET: s3://smithsonian-scratch/$(JUPYTERHUB_USER) diff --git a/config/clusters/smithsonian/staging.values.yaml b/config/clusters/smithsonian/staging.values.yaml index 1b30b413f7..99ab548c44 100644 --- a/config/clusters/smithsonian/staging.values.yaml +++ b/config/clusters/smithsonian/staging.values.yaml @@ -1,4 +1,9 @@ basehub: + userServiceAccount: + enabled: true + annotations: + eks.amazonaws.com/role-arn: arn:aws:iam::969396938818:role/smithsonian-staging + jupyterhub: ingress: hosts: [staging.smithsonian.2i2c.cloud] @@ -9,3 +14,6 @@ basehub: config: GitHubOAuthenticator: oauth_callback_url: https://staging.smithsonian.2i2c.cloud/hub/oauth_callback + singleuser: + extraEnv: + SCRATCH_BUCKET: s3://smithsonian-scratch-staging/$(JUPYTERHUB_USER)