diff --git a/modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml b/modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml index 87ebd999e..39db61330 100644 --- a/modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml +++ b/modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml @@ -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" @@ -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: @@ -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: @@ -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: diff --git a/modules/jupyter/jupyter_config/config-selfauth.yaml b/modules/jupyter/jupyter_config/config-selfauth.yaml index 9f5345944..8010c3403 100644 --- a/modules/jupyter/jupyter_config/config-selfauth.yaml +++ b/modules/jupyter/jupyter_config/config-selfauth.yaml @@ -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." @@ -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: @@ -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: @@ -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: