apiVersion: v1
kind: Pod
metadata:
  name: mongodb
  labels:
    app: employee-mongodb
spec:
  volumes:
  - name: employee-mongo-vol
    persistentVolumeClaim:
      claimName: employee-pvc
  containers:
  - image: mongo
    name: container1
    command:
    - mongod
    - "--bind_ip"
    - "0.0.0.0"
    ports:
    - containerPort: 27017
    volumeMounts:
    - name: employee-mongo-vol
      mountPath: /data/db