Skip to content

Commit

Permalink
Remove cron pod from self hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed Nov 4, 2024
1 parent 8ae01a7 commit d875d9a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 113 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Refactor-20241104-093536.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Refactor
body: Crontab usage has been removed from the app in favor of the scheduler
time: 2024-11-04T09:35:36.363734-06:00
104 changes: 0 additions & 104 deletions charts/opslevel/templates/opslevel/cron.yaml

This file was deleted.

22 changes: 13 additions & 9 deletions charts/opslevel/templates/opslevel/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,25 @@ spec:
- name: migrations
image: "{{ template "opslevel.image" . }}"
args:
- bundle
- exec
- rake
- db:abort_if_pending_migrations
- ./bin/init-db
env: &env
- name: SIDEKIQ_CONCURRENCY
value: "1"
- name: SIDEKIQ_SCHEDULER
value: "true"
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
envFrom: &envFrom
- configMapRef:
name: 'opslevel'
- secretRef:
name: 'opslevel'
- secretRef:
name: '{{ .Values.redis.secret.name }}'
- secretRef:
name: '{{ .Values.elasticsearch.secret.name }}'
{{- template "opslevel.integration.secrets" . }}
{{- if .Values.global.certificate }}
volumeMounts:
Expand All @@ -81,11 +89,7 @@ spec:
- exec
- sidekiq
envFrom: *envFrom
env:
- name: SIDEKIQ_CONCURRENCY
value: "1"
- name: SIDEKIQ_SCHEDULER
value: "true"
env: *env
{{- with .Values.opslevel.workerLow.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit d875d9a

Please sign in to comment.