---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: covid19-worker-deployment
spec:
  selector:
    matchLabels:
      app: covid19-worker
  replicas: 1
  template:
    metadata:
      labels:
        app: covid19-worker
    spec:
      containers:
      - name: covid19-worker
        image: iad.ocir.io/bmcdw/covid19_worker:latest
        imagePullPolicy: Always
        env:
        - name: CONTAINER_TYPE
          value: worker
        - name: REDIS_HOST
          value: covid19-redis-service.default
        - name: APP_ENV
          value: prod
        - name: FLASK_APP
          value: app
      imagePullSecrets:
        - name: ocir-creds
