From b1d4d870fd550238c992aea5a67ea34cb96e59e2 Mon Sep 17 00:00:00 2001 From: Andreas Jensen Date: Thu, 4 Apr 2024 21:42:55 +0800 Subject: [PATCH] refactor: if a pod gets restart and deployed on a new node the volume might still be attached to the old node when the init container runs thus resulting in the following error: Multi-Attach error for volume "pvc-f37105b4-60fc-46a3-8155-c2c11ee789b4" Volume is already used by pod(s) test-storage-03-core-dc97fdd-ldkvt --- charts/core/templates/pvc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/core/templates/pvc.yaml b/charts/core/templates/pvc.yaml index ce388e9..1b90c25 100644 --- a/charts/core/templates/pvc.yaml +++ b/charts/core/templates/pvc.yaml @@ -7,7 +7,7 @@ metadata: {{- include "dhis2-core-helm.labels" . | nindent 4 }} spec: accessModes: - - ReadWriteOnce + - ReadWriteMany resources: requests: storage: {{ .Values.storage.volumeSize }}