Skip to content

Commit

Permalink
Ensure users keep their nfs home directories with kubespawner 7
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 18, 2024
1 parent 9fcba98 commit 9e1e9e1
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion config/clusters/2i2c-aws-us/itcoocean.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/hhmi/daskhub-common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
- name: home
mountPath: /home/jovyan/shared
subPath: _shared
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/nasa-cryo/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-esdis/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand All @@ -93,7 +93,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-esdis/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand All @@ -53,7 +53,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-ghg/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand All @@ -119,7 +119,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-ghg/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand All @@ -87,7 +87,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-veda/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down Expand Up @@ -158,7 +158,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/nasa-veda/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down Expand Up @@ -68,7 +68,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions config/clusters/pchub/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand All @@ -84,7 +84,7 @@ basehub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions docs/howto/features/per-user-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down Expand Up @@ -132,7 +132,7 @@ jupyterhub:
# that load data into the db from disk work
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
- name: postgres-db
mountPath: /var/lib/postgresql/data
# postgres recommends against mounting a volume directly here
Expand Down
2 changes: 1 addition & 1 deletion docs/topic/infrastructure/storage-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down
6 changes: 3 additions & 3 deletions helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ jupyterhub:
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
subPath: "{escaped_username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
Expand Down Expand Up @@ -772,7 +772,7 @@ jupyterhub:
type: static
static:
pvcName: home-nfs
subPath: "{username}"
subPath: "{escaped_username}"
extraVolumes:
- name: dev-shm
emptyDir:
Expand All @@ -797,7 +797,7 @@ jupyterhub:
# problem by openscapes)
- name: home
mountPath: /home/rstudio
subPath: "{username}"
subPath: "{escaped_username}"
- name: home
mountPath: /home/rstudio/shared
subPath: _shared
Expand Down

0 comments on commit 9e1e9e1

Please sign in to comment.