Skip to content

Commit

Permalink
JupyterHub should use a GCS bucket it can access when using GCSFuse (#…
Browse files Browse the repository at this point in the history
…434)

JupyterHub should use a GCS bucket it can access when configuring GCSFuse for notebook servers

Signed-off-by: Andrew Sy Kim <[email protected]>
  • Loading branch information
andrewsykim authored Mar 28, 2024
1 parent 248173e commit 2a4540c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
node_selector:
cloud.google.com/compute-class: "Performance"
Expand Down Expand Up @@ -165,8 +165,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: ${notebook_image}:${notebook_image_tag}
extra_resource_limits:
Expand Down Expand Up @@ -196,8 +196,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: ${notebook_image}:${notebook_image_tag}
extra_resource_limits:
Expand Down Expand Up @@ -229,8 +229,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: ${notebook_image}:${notebook_image_tag}
extra_resource_limits:
Expand Down
16 changes: 8 additions & 8 deletions modules/jupyter/jupyter_config/config-selfauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
default: true
- display_name: "TPU"
description: "Creates TPUs VMs as the compute for notebook execution. Will only work if TPU is enabled."
Expand All @@ -176,8 +176,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: jupyter/tensorflow-notebook:python-3.10
extra_resource_limits:
Expand Down Expand Up @@ -206,8 +206,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: ${notebook_image}:${notebook_image_tag}
extra_resource_limits:
Expand Down Expand Up @@ -237,8 +237,8 @@ singleuser:
csi:
driver: gcsfuse.csi.storage.gke.io
volumeAttributes:
bucketName: gcsfuse-{username}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777"
bucketName: ${gcs_bucket}
mountOptions: "uid=1000,gid=100,o=noexec,implicit-dirs,dir-mode=777,file-mode=777,only-dir=notebooks/{username}"
kubespawner_override:
image: ${notebook_image}:${notebook_image_tag}
extra_resource_limits:
Expand Down

0 comments on commit 2a4540c

Please sign in to comment.