apiVersion: apps/v1
kind: Deployment
metadata:
  name: nextepc-mongo
spec:
  selector:
    matchLabels:
      app: nextepc-mongo
  template:
    metadata:
      labels:
        app: nextepc-mongo
    spec:
      containers:
      - image: cewuandy/nextepc-mongodb
        name: nextepc-mongo
        ports:
        - containerPort: 27017
          name: mongo
        volumeMounts:
        - name: mongo-persistent-storage
          mountPath: /data/db
      volumes:
      - name: mongo-persistent-storage
        persistentVolumeClaim:
          claimName: mongo-pv-claim
