apiVersion: apps/v1
kind: Deployment
metadata:
  name: celery-worker
  labels:
    deployment: celery-worker
spec:
  replicas: 1
  selector:
    matchLabels:
      pod: celery-worker
  template:
    metadata:
      labels:
        pod: celery-worker
    spec:
      containers:
        - name: celery-worker
          image: mraarif/capstone-celery
          command: ['celery', '-A', 'headliner', 'worker', '-l', 'info']
          envFrom:
            - secretRef:
                name: dev-secrets
