Skip to content

Commit

Permalink
Merge pull request #5557 from hantmac/fix/k8s-deploy
Browse files Browse the repository at this point in the history
fix(scripts):deploy meta-service failed because of no pv definition
  • Loading branch information
mergify[bot] authored May 24, 2022
2 parents ead0ef3 + 99405db commit 93ae060
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 93ae060

Please sign in to comment.