Skip to content

Commit

Permalink
Run IA healthcheck as a Kubernetes CronJob
Browse files Browse the repository at this point in the history
We used to run this in an EC2 instance with cron, but it's probably better managed along with everything else in k8s.

See also edgi-govdata-archiving/web-monitoring-processing#757.
  • Loading branch information
Mr0grog committed Feb 16, 2023
1 parent bdf0342 commit 624716a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions kubernetes/production/ia-healthcheck-job
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: ia-healthcheck-job
namespace: production
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
containers:
- name: ia-healthcheck-job
image: envirodgi/processing:latest
command: ["scripts/ia_healthcheck"]
imagePullPolicy: Always
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "1500m"
env:
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: job-secrets
key: healthcheck_sentry_dsn

0 comments on commit 624716a

Please sign in to comment.