Browse Source

[helm] fix worker template persistentVolumeClaim link (#11248)

shiyu li 2 years ago
parent
commit
cc5f710147

+ 7 - 0
deploy/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml

@@ -110,6 +110,7 @@ spec:
             {{- include "dolphinscheduler.sharedStorage.volumeMount" . | nindent 12 }}
             {{- include "dolphinscheduler.fsFileResource.volumeMount" . | nindent 12 }}
       volumes:
+        {{- if .Values.worker.persistentVolumeClaim.enabled }}
         - name: {{ include "dolphinscheduler.fullname" . }}-worker-data
           {{- if .Values.worker.persistentVolumeClaim.dataPersistentVolume.enabled }}
           persistentVolumeClaim:
@@ -124,6 +125,12 @@ spec:
           {{- else }}
           emptyDir: {}
           {{- end }}
+        {{- else }}
+        - name: {{ include "dolphinscheduler.fullname" . }}-worker-data
+          emptyDir: {}
+        - name: {{ include "dolphinscheduler.fullname" . }}-worker-logs
+          emptyDir: {}
+        {{- end }}
         - name: config-volume
           configMap:
             name: {{ include "dolphinscheduler.fullname" . }}-configs