add mongodb

main
ycz008 2023-07-10 19:10:42 +08:00
parent 73f0a052ef
commit ac95d5f2d0
1 changed files with 10 additions and 10 deletions

View File

@ -1,12 +1,12 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: mongo-dev
provisioner: kubernetes.io/no-provisioner
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
# ---
# apiVersion: storage.k8s.io/v1
# kind: StorageClass
# metadata:
# name: mongo-dev
# provisioner: kubernetes.io/no-provisioner
# allowVolumeExpansion: true
# volumeBindingMode: WaitForFirstConsumer
---
apiVersion: v1
@ -16,7 +16,7 @@ metadata:
labels:
type: local
spec:
storageClassName: mongo-dev
storageClassName: local-storage
capacity:
storage: 10Gi
accessModes:
@ -71,7 +71,7 @@ spec:
name: mongo-data
spec:
accessModes: ['ReadWriteOnce']
storageClassName: "mongo-dev"
storageClassName: local-storage
resources:
requests:
storage: 5Gi