apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name: rfqm app.kubernetes.io/component: bull-board name: rfqm-bull-board spec: strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% replicas: 1 selector: matchLabels: app.kubernetes.io/name: rfqm app.kubernetes.io/component: bull-board template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "8080" labels: app.kubernetes.io/name: rfqm app.kubernetes.io/component: bull-board spec: nodeSelector: kubernetes.io/arch: amd64 # We currently only support amd64 terminationGracePeriodSeconds: 300 containers: - image: 0x-rfq-api:latest name: rfqm-bull-board resources: limits: cpu: 256m memory: 512Mi requests: cpu: 128m memory: 256Mi imagePullPolicy: Always startupProbe: httpGet: path: /admin/queues port: http initialDelaySeconds: 2 periodSeconds: 60 successThreshold: 1 timeoutSeconds: 5 failureThreshold: 6 # Give container 1 minute to startup livenessProbe: httpGet: path: /admin/queues port: http initialDelaySeconds: 2 periodSeconds: 60 successThreshold: 1 timeoutSeconds: 5 command: ["/bin/sh", "-c"] args: ["yarn workspace rfq-api start:service:bull_board"] ports: - containerPort: 3002 name: http - containerPort: 8080 name: prom env: - name: NODE_ENV value: "production" - name: LOGGER_INCLUDE_TIMESTAMP value: "false" - name: REDIS_BACKGROUND_JOB_URI - name: BACKGROUND_JOB_TYPES # job types for the processor to process (separated by ,) - name: ENABLE_PROMETHEUS_METRICS value: "true" - name: PROMETHEUS_PORT value: "8080"