apiVersion: apps/v1
kind: Deployment
metadata:
  name: stack-deploy-worker-squad2
  labels:
    name: stack-deploy-worker-squad2
spec:
  replicas: 1 
  selector:
    matchLabels:
      name: stack-deploy-worker-squad2
  template:
    metadata:
      labels:
        name: stack-deploy-worker-squad2
    spec:
      subdomain: primary
      containers:
        - name: stack-deploy-worker-squad2
          image: nabilm/airgapper-api:2.1.4
          imagePullPolicy: Always
          env:
          - name: TF_WARN_OUTPUT_ERRORS
            value: "1"
          resources:
            limits:
              memory: 600Mi
              cpu: 1
            requests:
              memory: 300Mi
              cpu: 500m
          command: ["celery", "--app", "tasks.celery_worker", "worker", "--loglevel=info", "-c", "1", "-E", "-Q", "squad2"]
