Skip to content

Commit

Permalink
Use terraform for workload identity in pangeo
Browse files Browse the repository at this point in the history
Ref #1153
  • Loading branch information
yuvipanda committed Apr 3, 2022
1 parent 18bab32 commit 3449481
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/clusters/pangeo-hubs/prod.values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
basehub:
userServiceAccount:
annotations:
iam.gke.io/gcp-service-account: prod-user-sa@pangeo-integration-te-3eea.iam.gserviceaccount.com
iam.gke.io/gcp-service-account: pangeo-hubs-prod@pangeo-integration-te-3eea.iam.gserviceaccount.com
jupyterhub:
hub:
config:
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/pangeo-hubs/staging.values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
basehub:
userServiceAccount:
annotations:
iam.gke.io/gcp-service-account: staging-user-sa@pangeo-integration-te-3eea.iam.gserviceaccount.com
iam.gke.io/gcp-service-account: pangeo-hubs-staging@pangeo-integration-te-3eea.iam.gserviceaccount.com
jupyterhub:
hub:
config:
Expand Down
18 changes: 16 additions & 2 deletions terraform/gcp/projects/pangeo-hubs.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ enable_private_cluster = true
enable_network_policy = true

# Some hubs want a storage bucket, so we need to have config connector enabled
config_connector_enabled = true
config_connector_enabled = false

# Setup a filestore for in-cluster NFS
enable_filestore = true
filestore_capacity_gb = 2048

user_buckets = [
"pangeo-scratch"
"scratch",
"scratch-staging"
]

# Setup notebook node pools
Expand Down Expand Up @@ -59,3 +60,16 @@ dask_nodes = {
labels: {},
},
}

hub_cloud_permissions = {
"staging" : {
requestor_pays : true,
bucket_admin_access: ["scratch-staging"],
hub_namespace: "staging"
},
"prod" : {
requestor_pays : true,
bucket_admin_access: ["scratch"],
hub_namespace: "prod"
},
}

0 comments on commit 3449481

Please sign in to comment.