apiVersion: apps/v1
kind: Deployment
metadata:
  name: mongodb
  labels:
    app: mongodb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mongodb
  template:
    metadata:
      labels:
        app: mongodb
    spec:
      volumes:
      - name: mongodb-data
        persistentVolumeClaim:
          claimName: mongodb-pvc
    
      containers:
      - name: monogodb
        image: harshthakur/mongodb
        imagePullPolicy: Never
        volumeMounts:
        - name:  mongodb-data
          mountPath:  /data/db

