Skip to content

Commit

Permalink
Update nfs-pv-pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 committed Oct 6, 2020
1 parent 60056d9 commit 1649ae8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pv-pvc/nfs-pv-pvc
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,35 @@ spec:
resources:
requests:
storage: 500Mi
---
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: mongodbrs
spec:
selector:
matchLabels:
app: mongodb
template:
metadata:
name: mongodbpod
labels:
app: mongodb
spec:
volumes:
- name: mongodb-pvc
persistentVolumeClaim:
claimName: pvc-nfs-pv1
containers:
- name: mongodbcontainer
image: mongo
ports:
- containerPort: 27017
env:
- name: MONGO_INITDB_ROOT_USERNAME
value: devdb
- name: MONGO_INITDB_ROOT_PASSWORD
value: devdb@123
volumeMounts:
- name: mongodb-pvc
mountPath: /data/db

0 comments on commit 1649ae8

Please sign in to comment.