Skip to content

Commit

Permalink
Cleanup deployment-production.tmpl (#4434)
Browse files Browse the repository at this point in the history
- decrease minReplicas back to 2 for panoptes-production-sidekiq
- remove panoptes-production-sidekiq-alt container that was used during user_subject_seen-related backups
  • Loading branch information
lcjohnso authored Feb 25, 2025
1 parent 3806951 commit 5172c2d
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions kubernetes/deployment-production.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -355,66 +355,6 @@ 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 Expand Up @@ -479,7 +419,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: panoptes-production-sidekiq
minReplicas: 5
minReplicas: 2
maxReplicas: 16
targetCPUUtilizationPercentage: 95
---
Expand Down

0 comments on commit 5172c2d

Please sign in to comment.