From 7f7838d807044b97c5cc1e1d7daa547d176284c0 Mon Sep 17 00:00:00 2001 From: outductor Date: Sat, 13 Jan 2024 21:24:52 +0900 Subject: [PATCH] fix volume template --- .../apps/growi-system/elasticsearch/statefulset.yaml | 4 +++- .../apps/growi-system/mongodb/statefulset.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/elasticsearch/statefulset.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/elasticsearch/statefulset.yaml index 2aad6176d..3d445ff6e 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/elasticsearch/statefulset.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/elasticsearch/statefulset.yaml @@ -70,7 +70,9 @@ spec: configMap: name: elasticsearch-config volumeClaimTemplates: - - metadata: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: name: data-volume spec: accessModes: [ "ReadWriteOnce" ] diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/mongodb/statefulset.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/mongodb/statefulset.yaml index 84dfc3875..ef2301879 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/mongodb/statefulset.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/growi-system/mongodb/statefulset.yaml @@ -39,7 +39,9 @@ spec: initialDelaySeconds: 5 periodSeconds: 10 volumeClaimTemplates: - - metadata: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: name: mongo-data spec: accessModes: