apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    kubernetes.io/change-cause: "<to be filled in deploy_to_kubernetes script>"
  name: laa-legal-adviser-api-worker
spec:
  replicas: 1
  selector:
    matchLabels:
      app: laa-legal-adviser-api
      tier: worker
      env: development
  template:
    metadata:
      labels:
        app: laa-legal-adviser-api
        tier: worker
        env: development
        service_area: laa-get-access
        service_team: cla-fala
    spec:
      containers:
      - image: "<to be set by deploy_to_kubernetes>"
        imagePullPolicy: Never
        name: worker
        args: ["docker/run_worker.sh"]
        readinessProbe:
          exec:
            command: ["docker/ping_services.sh"]
          initialDelaySeconds: 5
          timeoutSeconds: 1
          periodSeconds: 10
        livenessProbe:
          exec:
            command: ["docker/ping_services.sh"]
          initialDelaySeconds: 10
          timeoutSeconds: 1
          periodSeconds: 10
        env:
        - name: WORKER_APP_CONCURRENCY
          value: "2"
        - name: LOG_LEVEL
          value: INFO
        - name: LOG_LEVEL
          value: INFO
        - name: DATABASE_URL
          value: "postgres://postgres@laa-legal-adviser-api-shared-services:5432/laalaa"
        - name: CELERY_BROKER_URL
          value: "redis://laa-legal-adviser-api-shared-services:6379"

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    kubernetes.io/change-cause: "<to be filled in deploy_to_kubernetes script>"
  name: laa-legal-adviser-api-worker
spec:
  replicas: 1
  selector:
    matchLabels:
      app: laa-legal-adviser-api
      tier: worker
      env: development
  template:
    metadata:
      labels:
        app: laa-legal-adviser-api
        tier: worker
        env: development
        service_area: laa-get-access
        service_team: cla-fala
    spec:
      containers:
      - image: "<to be set by deploy_to_kubernetes>"
        imagePullPolicy: Never
        name: worker
        args: ["docker/run_worker.sh"]
        readinessProbe:
          exec:
            command: ["docker/workers_healthcheck.sh"]
          initialDelaySeconds: 5
          timeoutSeconds: 1
          periodSeconds: 10
        livenessProbe:
          exec:
            command: ["docker/workers_healthcheck.sh"]
          initialDelaySeconds: 10
          timeoutSeconds: 1
          periodSeconds: 10
        env:
        - name: WORKER_APP_CONCURRENCY
          value: "2"
        - name: LOG_LEVEL
          value: INFO
        - name: LOG_LEVEL
          value: INFO
        - name: DATABASE_URL
          value: "postgres://postgres@laa-legal-adviser-api-shared-services:5432/laalaa"
        - name: CELERY_BROKER_URL
          value: "redis://laa-legal-adviser-api-shared-services:6379"

Use renamed queue worker probes on dev
Use renamed queue worker probes on dev
