apiVersion: apps/v1 kind: Deployment metadata: name: eveai-chat-workers namespace: eveai-staging labels: app: eveai-chat-workers component: backend role: worker spec: replicas: 1 selector: matchLabels: app: eveai-chat-workers template: metadata: labels: app: eveai-chat-workers component: backend role: worker spec: containers: - name: eveai-chat-workers image: josakola/eveai_chat_workers:latest envFrom: - secretRef: name: eveai-secrets env: - name: FLASK_ENV value: "staging" - name: COMPONENT_NAME value: "eveai_chat_workers" - name: ROLE value: "worker" - name: CELERY_CONCURRENCY value: "1" - name: CELERY_LOGLEVEL value: "DEBUG" - name: CELERY_MAX_TASKS_PER_CHILD value: "1000" - name: CELERY_PREFETCH value: "1" - name: CELERY_QUEUE_NAME value: "llm_interactions" - name: PUSH_GATEWAY_HOST valueFrom: secretKeyRef: name: eveai-secrets key: PUSH_GATEWAY_HOST optional: true - name: PUSH_GATEWAY_PORT valueFrom: secretKeyRef: name: eveai-secrets key: PUSH_GATEWAY_PORT optional: true volumeMounts: - name: logs-volume mountPath: /app/logs resources: requests: cpu: "500m" memory: "1Gi" limits: cpu: "2" memory: "3Gi" volumes: - name: logs-volume persistentVolumeClaim: claimName: eveai-chat-workers-logs