From 3f086c8f52b0d6f9e2fab096a727f64968d78dbd Mon Sep 17 00:00:00 2001 From: Youngsu Kim <youngsu.kim@csusb.edu> Date: Wed, 21 Sep 2022 22:28:07 -0700 Subject: [PATCH] Fix missing shared folder (PVC csusb-hpc-share) --- extraFiles/my_spawner.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/extraFiles/my_spawner.py b/extraFiles/my_spawner.py index 49fbbbe..3957af7 100644 --- a/extraFiles/my_spawner.py +++ b/extraFiles/my_spawner.py @@ -60,6 +60,10 @@ class MySpawner(KubeSpawner): { 'name': 'volume-{username}', 'mountPath': '/home/jovyan', + }, + { + 'name': 'csusb-hpc-share', + 'mountPath': '/home/jovyan/shared', } ] self.volumes = [ @@ -68,7 +72,13 @@ class MySpawner(KubeSpawner): 'persistentVolumeClaim': { 'claimName': 'claim-{username}' } - } + }, + { + 'name': 'csusb-hpc-share', + 'persistentVolumeClaim': { + 'claimName': 'csusb-hpc-share' + } + }, ] return options -- GitLab