---
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: mongo
    labels:
      app: reddit
      component: mongo
      comment-db: "true"
      post-db: "true"
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: reddit
        component: mongo
    template:
      metadata:
        name: mongo
        labels:
          app: reddit
          component: mongo
          comment-db: "true"
          post-db: "true"
      spec:
        containers:
        - image: mongo:3.2
          name: mongo
          volumeMounts:
            - name: mongo-gce-pd-storage
              mountPath: /data/db
        volumes:
        - name: mongo-gce-pd-storage
          persistentVolumeClaim:
            claimName: mongo-pvc-dynamic

