From fa52d3da2ac0cba5ff952226d9cb91d5e941b198 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Mon, 23 Dec 2024 08:40:17 +0500 Subject: [PATCH] fix redis data dir mount --- charts/keys/templates/redis/statefulset.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/keys/templates/redis/statefulset.yaml b/charts/keys/templates/redis/statefulset.yaml index 5147b868e..2088ffd32 100644 --- a/charts/keys/templates/redis/statefulset.yaml +++ b/charts/keys/templates/redis/statefulset.yaml @@ -33,6 +33,9 @@ spec: - configMap: name: {{ include "keys.redis.name" . }} name: conf + - name: data + emptyDir: + sizeLimit: 1Gi containers: - name: redis image: {{ required "A valid .Values.dgctlDockerRegistry entry required" .Values.dgctlDockerRegistry }}/{{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }} @@ -53,6 +56,8 @@ spec: - name: conf mountPath: {{ .Values.redis.configPath }} subPath: redis.conf + - name: data + mountPath: /data {{- with .Values.redis.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}