From 3c7a703511ae5300dc97ab8793943347b001cf34 Mon Sep 17 00:00:00 2001 From: alexpirogovski Date: Sun, 8 Dec 2024 21:25:59 +0200 Subject: [PATCH] CEML-293: Remove chown from Jupyter (#152) --- charts/mlrun-ce/Chart.yaml | 2 +- .../templates/jupyter-notebook/deployment.yaml | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/charts/mlrun-ce/Chart.yaml b/charts/mlrun-ce/Chart.yaml index 777a100b..cb9bf14e 100644 --- a/charts/mlrun-ce/Chart.yaml +++ b/charts/mlrun-ce/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mlrun-ce -version: 0.7.1-rc4 +version: 0.7.1-rc5 description: MLRun Open Source Stack home: https://iguazio.com icon: https://www.iguazio.com/wp-content/uploads/2019/10/Iguazio-Logo.png diff --git a/charts/mlrun-ce/templates/jupyter-notebook/deployment.yaml b/charts/mlrun-ce/templates/jupyter-notebook/deployment.yaml index 3e233f79..c004e066 100644 --- a/charts/mlrun-ce/templates/jupyter-notebook/deployment.yaml +++ b/charts/mlrun-ce/templates/jupyter-notebook/deployment.yaml @@ -22,17 +22,7 @@ spec: runAsUser: 1000 runAsGroup: 100 fsGroup: 100 - initContainers: - - name: init-chown-data - # jupyter default NB user: uid=1000(jovyan) gid=100(users) groups=100(users) - command: ["chown", "-R", "1000:100", "/home/jovyan/"] - image: "{{ .Values.jupyterNotebook.busybox.image }}:{{ .Values.jupyterNotebook.busybox.tag }}" - imagePullPolicy: IfNotPresent - securityContext: - runAsUser: 0 - volumeMounts: - - mountPath: /home/jovyan/ - name: notebooks + fsGroupChangePolicy: OnRootMismatch containers: - name: jupyter-notebook image: "{{ .Values.jupyterNotebook.image.repository }}:{{ .Values.jupyterNotebook.image.tag }}"