Skip to content

Commit

Permalink
fix(scripts):deploy meta-service failed because of no pv definition
Browse files Browse the repository at this point in the history
Signed-off-by: hantmac <hantmac@outlook.com>
  • Loading branch information
hantmac committed May 24, 2022
1 parent 140507d commit 37844e4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions scripts/kubernetes/meta-standalone.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -83,6 +98,8 @@ spec:
name: data
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: local-storage
volumeName: meta-service-pv-volume
resources:
requests:
storage: 1Gi
Expand Down
2 changes: 1 addition & 1 deletion scripts/kubernetes/minio-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
path: "/mnt/databend/minio"
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down

0 comments on commit 37844e4

Please sign in to comment.