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