diff --git a/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml index 7f7df93b5..06bbad289 100644 --- a/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml @@ -85,6 +85,9 @@ spec: volumeMounts: - name: datadir mountPath: /mnt/efs + {{- with .Values.persistence.mounts }} + {{- toYaml . | nindent 10 }} + {{- end }} {{- if eq .Values.pvc.name "hostPath" }} volumes: - name: datadir @@ -92,11 +95,17 @@ spec: # Ensure the file directory is created. path: {{ .Values.pvc.hostMountPath }} type: DirectoryOrCreate + {{- with .Values.persistence.volumes }} + {{- toYaml . | nindent 6 }} + {{- end }} {{- else }} volumes: - name: datadir persistentVolumeClaim: claimName: {{ .Values.pvc.name }} + {{- with .Values.persistence.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/scripts/helmcharts/openreplay/charts/sink/values.yaml b/scripts/helmcharts/openreplay/charts/sink/values.yaml index 46d08e8ec..0a5e81ade 100644 --- a/scripts/helmcharts/openreplay/charts/sink/values.yaml +++ b/scripts/helmcharts/openreplay/charts/sink/values.yaml @@ -99,6 +99,17 @@ pvc: name: hostPath hostMountPath: /openreplay/storage/nfs +persistence: {} + # # Spec of spec.template.spec.containers[*].volumeMounts + # mounts: + # - name: kafka-ssl + # mountPath: /opt/kafka/ssl + # # Spec of spec.template.spec.volumes + # volumes: + # - name: kafka-ssl + # secret: + # secretName: kafka-ssl + nodeSelector: {} tolerations: [] diff --git a/scripts/helmcharts/openreplay/charts/storage/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/storage/templates/deployment.yaml index 986f4a6ff..5a2e8c73d 100644 --- a/scripts/helmcharts/openreplay/charts/storage/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/storage/templates/deployment.yaml @@ -79,8 +79,14 @@ spec: volumeMounts: - name: datadir mountPath: /mnt/efs + {{- with .Values.persistence.mounts }} + {{- toYaml . | nindent 10 }} + {{- end }} {{- if eq .Values.pvc.name "hostPath" }} volumes: + {{- with .Values.persistence.volumes }} + {{- toYaml . | nindent 6 }} + {{- end }} - name: datadir hostPath: # Ensure the file directory is created. @@ -88,6 +94,9 @@ spec: type: DirectoryOrCreate {{- else }} volumes: + {{- with .Values.persistence.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} - name: datadir persistentVolumeClaim: claimName: {{ .Values.pvc.name }} diff --git a/scripts/helmcharts/openreplay/charts/storage/values.yaml b/scripts/helmcharts/openreplay/charts/storage/values.yaml index 51e387dc3..abbb55351 100644 --- a/scripts/helmcharts/openreplay/charts/storage/values.yaml +++ b/scripts/helmcharts/openreplay/charts/storage/values.yaml @@ -100,6 +100,17 @@ pvc: name: hostPath hostMountPath: /openreplay/storage/nfs +persistence: {} + # # Spec of spec.template.spec.containers[*].volumeMounts + # mounts: + # - name: kafka-ssl + # mountPath: /opt/kafka/ssl + # # Spec of spec.template.spec.volumes + # volumes: + # - name: kafka-ssl + # secret: + # secretName: kafka-ssl + nodeSelector: {} tolerations: []