From fc754d7855a507ef40926b1f74ee9562beefe095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD?= Date: Mon, 2 Dec 2024 18:13:29 +0800 Subject: [PATCH] fix: When the pod restarts, the broker data is lost. The persistent data dir of the broker is not correctly mounted to the correct directory in the container, resulting in the loss of broker data after the pod is restarted. --- rocketmq-k8s-helm/templates/broker/statefulset.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketmq-k8s-helm/templates/broker/statefulset.yaml b/rocketmq-k8s-helm/templates/broker/statefulset.yaml index ecf18a1..e6db6f5 100644 --- a/rocketmq-k8s-helm/templates/broker/statefulset.yaml +++ b/rocketmq-k8s-helm/templates/broker/statefulset.yaml @@ -78,7 +78,7 @@ spec: - mountPath: /home/rocketmq/logs name: broker-storage subPath: home/rocketmq/rocketmq-broker - - mountPath: /root/store + - mountPath: /home/rocketmq/store name: broker-storage subPath: store/rocketmq-broker {{- with .Values.broker.nodeSelector }} @@ -101,4 +101,4 @@ spec: resources: requests: storage: {{ .Values.broker.persistence.size }} - {{- end }} \ No newline at end of file + {{- end }}