add mongodb

main
ycz008 2023-07-10 19:17:34 +08:00
parent ac95d5f2d0
commit 35266197d5
3 changed files with 10 additions and 21 deletions

View File

@ -1,13 +1,4 @@
# ---
# apiVersion: storage.k8s.io/v1
# kind: StorageClass
# metadata:
# name: mongo-dev
# provisioner: kubernetes.io/no-provisioner
# allowVolumeExpansion: true
# volumeBindingMode: WaitForFirstConsumer
---
apiVersion: v1
kind: PersistentVolume
@ -16,7 +7,7 @@ metadata:
labels:
type: local
spec:
storageClassName: local-storage
storageClassName: local-mongo
capacity:
storage: 10Gi
accessModes:

View File

@ -1,13 +1,3 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: mongo-release
provisioner: kubernetes.io/no-provisioner
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: v1
kind: PersistentVolume
@ -16,7 +6,7 @@ metadata:
labels:
type: local
spec:
storageClassName: mongo-release
storageClassName: local-mongo
capacity:
storage: 10Gi
accessModes:

View File

@ -0,0 +1,8 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-mongo
provisioner: kubernetes.io/no-provisioner
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer