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