From cd6a58aa60b778dfdfa1bc1d18d0c529e0fa7d84 Mon Sep 17 00:00:00 2001 From: Viktor Bogdanov Date: Mon, 30 Sep 2019 11:05:37 +0800 Subject: [PATCH] [stable/spark-history-server]Fix pvc mountpath (#17349) * Fix PVC mount path Signed-off-by: Viktor Bogdanov Signed-off-by: vvbogdanov87 * Bump chart version Signed-off-by: Viktor Bogdanov Signed-off-by: vvbogdanov87 --- stable/spark-history-server/Chart.yaml | 2 +- stable/spark-history-server/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/spark-history-server/Chart.yaml b/stable/spark-history-server/Chart.yaml index f21c0bdfc2..4da43f3169 100644 --- a/stable/spark-history-server/Chart.yaml +++ b/stable/spark-history-server/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: spark-history-server -version: 1.1.0 +version: 1.1.1 appVersion: 2.4.0 description: A Helm chart for Spark History Server home: https://spark.apache.org diff --git a/stable/spark-history-server/templates/deployment.yaml b/stable/spark-history-server/templates/deployment.yaml index 64a42e6f12..199d72596c 100644 --- a/stable/spark-history-server/templates/deployment.yaml +++ b/stable/spark-history-server/templates/deployment.yaml @@ -45,7 +45,7 @@ spec: - > if [ "$enablePVC" == "true" ]; then export SPARK_HISTORY_OPTS="$SPARK_HISTORY_OPTS \ - -Dspark.history.fs.logDirectory=file:/mnt/$eventsDir"; + -Dspark.history.fs.logDirectory=file:/data/$eventsDir"; elif [ "$enableGCS" == "true" ]; then export SPARK_HISTORY_OPTS="$SPARK_HISTORY_OPTS \ -Dspark.hadoop.google.cloud.auth.service.account.json.keyfile=/etc/secrets/$key \ @@ -95,7 +95,7 @@ spec: {{- if .Values.pvc.enablePVC }} volumeMounts: - name: data - mountPath: /mnt/{{ .Values.pvc.eventsDir }} + mountPath: /data {{- else if .Values.gcs.enableGCS }} volumeMounts: - name: secrets-volume