From 37844e4644bd7277b294dd87b4fdabb3d2b4d9ab Mon Sep 17 00:00:00 2001 From: hantmac Date: Tue, 24 May 2022 16:52:40 +0800 Subject: [PATCH] fix(scripts):deploy meta-service failed because of no pv definition Signed-off-by: hantmac --- scripts/kubernetes/meta-standalone.yaml | 17 +++++++++++++++++ scripts/kubernetes/minio-sample.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/scripts/kubernetes/meta-standalone.yaml b/scripts/kubernetes/meta-standalone.yaml index 805ab0b17945..35793e82c378 100644 --- a/scripts/kubernetes/meta-standalone.yaml +++ b/scripts/kubernetes/meta-standalone.yaml @@ -1,4 +1,19 @@ --- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: meta-service-pv-volume + labels: + type: local +spec: + storageClassName: local-storage + capacity: + storage: 10Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mnt/databend/meta" +--- apiVersion: apps/v1 kind: StatefulSet metadata: @@ -83,6 +98,8 @@ spec: name: data spec: accessModes: ["ReadWriteOnce"] + storageClassName: local-storage + volumeName: meta-service-pv-volume resources: requests: storage: 1Gi diff --git a/scripts/kubernetes/minio-sample.yaml b/scripts/kubernetes/minio-sample.yaml index bb7abf7100bd..5115c344ce67 100644 --- a/scripts/kubernetes/minio-sample.yaml +++ b/scripts/kubernetes/minio-sample.yaml @@ -19,7 +19,7 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/data" + path: "/mnt/databend/minio" --- apiVersion: v1 kind: PersistentVolumeClaim