apiVersion: apps/v1
kind: Deployment
metadata:
  name: queue-redriver
  labels:
    app: queue-redriver
spec:
  selector:
    matchLabels:
      app: queue-redriver
  template:
    metadata:
      labels:
        app: queue-redriver
    spec:
      containers:
      - name: queue-redriver
        image: 035363416972.dkr.ecr.us-east-1.amazonaws.com/wavtool-server:$DEPLOY_TAG
        command:
          - /sbin/tini
          - node
          - ./built/src/queue-redriver.js
        imagePullPolicy: Always
        env:
        - name: REDIS_SENTINEL_NAME
          value: "wavtoolmaster"
        - name: REDIS_SENTINEL_HOST
          value: "prod-redis.redis.svc.cluster.local"
        envFrom:
        - secretRef:
            name: redis-secret
        resources:
          requests:
            cpu: 10m
            memory: 32Mi
