apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  labels:
    service: flipstarter
    version: 0.0.1
  name: flipstarter
spec:
  strategy:
    type: Recreate
  replicas: 1
  selector:
    matchLabels:
      service: flipstarter
  template:
    metadata:
      labels:
        service: flipstarter
    spec:
      containers:
      - image: zquestz/flipstarter:latest
        name: flipstarter
        volumeMounts:
          - mountPath: /app/static/campaigns
            name: flipstarter-data
        resources:
          requests:
            memory: "64Mi"
        ports:
          - name: web
            containerPort: 3000
      restartPolicy: Always
      volumes:
        - name: flipstarter-data
          gcePersistentDisk:
            pdName: flipstarter-data
            fsType: ext4
