diff --git a/charts/ftl/templates/schema-deployment.yaml b/charts/ftl/templates/schema-deployment.yaml index 61be952dd0..94ca568c0f 100644 --- a/charts/ftl/templates/schema-deployment.yaml +++ b/charts/ftl/templates/schema-deployment.yaml @@ -47,6 +47,9 @@ spec: - secretRef: name: {{ include "ftl.fullname" . }}-secrets {{- end }} + volumeMounts: + - name: schema-raft-storage + mountPath: /data/raft env: {{- if .Values.schema.env }} {{- toYaml .Values.schema.env | nindent 12 }} @@ -58,7 +61,7 @@ spec: - name: RAFT_INITIAL_REPLICA_IDS value: "{{- range $index := until (.Values.schema.replicas | int ) }}{{- if ne $index 0 -}},{{- end -}}{{ add $index 1 }}{{- end -}}" - name: RAFT_DATA_DIR - value: "/tmp/ftl-schema" + value: "/data/raft" - name: ORDINAL_NUMBER valueFrom: fieldRef: @@ -104,4 +107,13 @@ spec: {{- if .Values.schema.tolerations }} tolerations: {{- toYaml .Values.schema.tolerations | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} + volumeClaimTemplates: + - metadata: + name: schema-raft-storage # This name will be used as a PVC name + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: {{ .Values.schema.storage }} \ No newline at end of file diff --git a/charts/ftl/values.yaml b/charts/ftl/values.yaml index 585fa50f26..8cfe6fd339 100644 --- a/charts/ftl/values.yaml +++ b/charts/ftl/values.yaml @@ -339,6 +339,7 @@ timeline: schema: enabled: true replicas: 3 + storage: 50Mi env: - name: MY_POD_IP valueFrom: