From 678402349e92f018f3a9a3805a3a2f703ed53013 Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 24 Oct 2024 17:37:50 +0200 Subject: [PATCH 1/2] add toleration to jupyterlab chart --- apps/jupyter-lab/Chart.yaml | 2 +- apps/jupyter-lab/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/jupyter-lab/Chart.yaml b/apps/jupyter-lab/Chart.yaml index d42f98f..04f0173 100644 --- a/apps/jupyter-lab/Chart.yaml +++ b/apps/jupyter-lab/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.1" description: A Helm chart for Jupyter Lab name: lab -version: 1.0.2 +version: 1.0.3 maintainers: - name: Team Whale email: serve@scilifelab.se diff --git a/apps/jupyter-lab/templates/deployment.yaml b/apps/jupyter-lab/templates/deployment.yaml index bacfc35..b62cbb4 100644 --- a/apps/jupyter-lab/templates/deployment.yaml +++ b/apps/jupyter-lab/templates/deployment.yaml @@ -82,6 +82,12 @@ spec: mountPath: /home/jovyan/work/{{ $key }} {{- end }} terminationGracePeriodSeconds: 30 + {{ if index .Values.flavor.limits "nvidia.com/gpu" }} + tolerations: + - key: nvidia.com/gpu + effect: NoSchedule + operator: Exists + {{ end }} dnsPolicy: ClusterFirst volumes: - name: jupyterconf From 017efb4ee7d831f90dea1120e7457e0737d66f0a Mon Sep 17 00:00:00 2001 From: Hamza Date: Mon, 2 Dec 2024 20:41:30 +0500 Subject: [PATCH 2/2] update chart version --- apps/jupyter-lab/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jupyter-lab/Chart.yaml b/apps/jupyter-lab/Chart.yaml index 04f0173..61c9c55 100644 --- a/apps/jupyter-lab/Chart.yaml +++ b/apps/jupyter-lab/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.1" description: A Helm chart for Jupyter Lab name: lab -version: 1.0.3 +version: 1.0.4 maintainers: - name: Team Whale email: serve@scilifelab.se