Skip to content

Commit

Permalink
Merge pull request #2834 from 2i2c-org/qcl-shared-public
Browse files Browse the repository at this point in the history
quantifiedcarbon (qcl): Enable shared-public
  • Loading branch information
Pris Nasrat authored Jul 18, 2023
2 parents 4a082c1 + 58017ec commit b5eea8c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions config/clusters/qcl/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,38 @@ jupyterhub:
cpu_guarantee: 9.6
cpu_limit: null
mem_limit: null
# shared-public for collaboration
# See https://2i2c.freshdesk.com/a/tickets/814
storage:
extraVolumeMounts:
- name: home
mountPath: /home/jovyan/shared-public
subPath: _shared-public
readOnly: false
- name: home
mountPath: /home/jovyan/shared
subPath: _shared
readOnly: true
initContainers:
- name: volume-mount-ownership-fix
image: busybox
command:
[
"sh",
"-c",
"id && chown 1000:1000 /home/jovyan && chown 1000:1000 /home/jovyan/shared-readwrite && chown 1000:1000 /home/jovyan/shared-public && ls -lhd /home/jovyan ",
]
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
mountPath: /home/jovyan/shared-readwrite
subPath: _shared
- name: home
mountPath: /home/jovyan/shared-public
subPath: _shared-public

0 comments on commit b5eea8c

Please sign in to comment.