Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add panoptes-production-sidekiq-alt pod type #4425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions kubernetes/deployment-production.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading