From e427e7eb0f1db668a53c00555f911d71207ee965 Mon Sep 17 00:00:00 2001 From: Cliff Johnson Date: Fri, 20 Dec 2024 13:18:10 -0600 Subject: [PATCH] Add new panoptes-production-sidekiq-alt pod for queue clearing --- kubernetes/deployment-production.tmpl | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/kubernetes/deployment-production.tmpl b/kubernetes/deployment-production.tmpl index 54f5e6441..d57d52d36 100644 --- a/kubernetes/deployment-production.tmpl +++ b/kubernetes/deployment-production.tmpl @@ -355,6 +355,66 @@ spec: --- apiVersion: apps/v1 kind: Deployment +metadata: + name: panoptes-production-sidekiq-alt + labels: + app: panoptes-production-sidekiq-alt +spec: + replicas: 1 + selector: + matchLabels: + app: panoptes-production-sidekiq-alt + template: + metadata: + labels: + app: panoptes-production-sidekiq-alt + spec: + containers: + - name: panoptes-production-sidekiq + image: ghcr.io/zooniverse/panoptes:__IMAGE_TAG__ + resources: + requests: + memory: "1000Mi" + cpu: "500m" + limits: + memory: "4000Mi" + cpu: "2000m" + livenessProbe: + exec: + command: + - /rails_app/scripts/docker/sidekiq_status + initialDelaySeconds: 20 + args: ["/rails_app/scripts/docker/start-sidekiq.sh"] + env: + - name: SIDEKIQ_ARGS + value: '-q default -q data_medium -q data_low' + - name: NEW_RELIC_APPLICATION_LOGGING_ENABLED + value: 'false' + envFrom: + - secretRef: + name: panoptes-common-env-vars + - secretRef: + name: panoptes-production-env-vars + - configMapRef: + name: panoptes-production-shared + volumeMounts: + - mountPath: /tmp + name: panoptes-production-dumpworker-data + - name: jwt-production + mountPath: "/rails_app/config/keys" + readOnly: true + volumes: + - name: panoptes-production-dumpworker-data + hostPath: + # directory location on host node temp disk + path: /mnt/panoptes-production-dumpworker-data + type: DirectoryOrCreate + - name: jwt-production + secret: + secretName: panoptes-doorkeeper-jwt-production +--- +apiVersion: apps/v1 +kind: Deployment metadata: name: panoptes-production-sidekiq labels: