propogate same changes to another value files

This commit is contained in:
Artur Kamalov 2025-09-02 13:06:48 +02:00
parent cee520522b
commit e4159b2166
2 changed files with 26 additions and 4 deletions

View File

@ -10,6 +10,17 @@ jupyterhub:
name: jupyterhub/k8s-singleuser-sample name: jupyterhub/k8s-singleuser-sample
tag: "4.2.0" tag: "4.2.0"
initContainers: initContainers:
# This init cntainer makes sure that home folder that we mount has correct owner
- name: chown-home-mount-dir
image: jupyterhub/k8s-singleuser-sample:4.2.0
securityContext:
runAsUser: 0
command: ["chown", "jovyan", "/home/jovyan"]
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: jupyterhub_workspace
- name: model-initializer - name: model-initializer
image: jupyterhub/k8s-singleuser-sample:4.2.0 image: jupyterhub/k8s-singleuser-sample:4.2.0
env: env:
@ -40,7 +51,7 @@ jupyterhub:
# We mount it to initContainer too, so all downloads and installations are persisted in this mounted home folder. # We mount it to initContainer too, so all downloads and installations are persisted in this mounted home folder.
- name: home - name: home
mountPath: /home/jovyan mountPath: /home/jovyan
subPath: admin subPath: jupyterhub_workspace
- name: "download-models-py" - name: "download-models-py"
mountPath: /tmp/download_models.py mountPath: /tmp/download_models.py
subPath: download_models.py subPath: download_models.py
@ -57,7 +68,7 @@ jupyterhub:
type: static type: static
static: static:
pvcName: "ai-starter-kit-models-cache-pvc" pvcName: "ai-starter-kit-models-cache-pvc"
subPath: "{username}" subPath: "jupyterhub_workspace"
capacity: 20Gi capacity: 20Gi
homeMountPath: /home/jovyan homeMountPath: /home/jovyan
extraVolumes: extraVolumes:

View File

@ -11,6 +11,17 @@ jupyterhub:
name: jupyterhub/k8s-singleuser-sample name: jupyterhub/k8s-singleuser-sample
tag: "4.2.0" tag: "4.2.0"
initContainers: initContainers:
# This init cntainer makes sure that home folder that we mount has correct owner
- name: chown-home-mount-dir
image: jupyterhub/k8s-singleuser-sample:4.2.0
securityContext:
runAsUser: 0
command: ["chown", "jovyan", "/home/jovyan"]
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: jupyterhub_workspace
- name: model-initializer - name: model-initializer
image: jupyterhub/k8s-singleuser-sample:4.2.0 image: jupyterhub/k8s-singleuser-sample:4.2.0
env: env:
@ -41,7 +52,7 @@ jupyterhub:
# We mount it to initContainer too, so all downloads and installations are persisted in this mounted home folder. # We mount it to initContainer too, so all downloads and installations are persisted in this mounted home folder.
- name: home - name: home
mountPath: /home/jovyan mountPath: /home/jovyan
subPath: admin subPath: jupyterhub_workspace
- name: "download-models-py" - name: "download-models-py"
mountPath: /tmp/download_models.py mountPath: /tmp/download_models.py
subPath: download_models.py subPath: download_models.py
@ -58,7 +69,7 @@ jupyterhub:
type: static type: static
static: static:
pvcName: "ai-starter-kit-models-cache-pvc" pvcName: "ai-starter-kit-models-cache-pvc"
subPath: "{username}" subPath: "jupyterhub_workspace"
capacity: 20Gi capacity: 20Gi
homeMountPath: /home/jovyan homeMountPath: /home/jovyan
extraVolumes: extraVolumes: