Skip to content

Commit

Permalink
Convert to cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Dec 6, 2023
1 parent d3123e6 commit a2f9fef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 33 deletions.
30 changes: 30 additions & 0 deletions k8s/dataset-knowledge-graph/cronjob.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: dataset-knowledge-graph
spec:
schedule: "15 3 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: app
image: ghcr.io/netwerk-digitaal-erfgoed/dataset-knowledge-graph
imagePullPolicy: Always
env:
- name: GRAPHDB_URL
value: "http://graphdb"
- name: GRAPHDB_USERNAME
valueFrom:
secretKeyRef:
name: graphdb
key: username
- name: GRAPHDB_PASSWORD
valueFrom:
secretKeyRef:
name: graphdb
key: password
restartPolicy: OnFailure
imagePullSecrets:
- name: ghcr
33 changes: 0 additions & 33 deletions k8s/dataset-knowledge-graph/deployment.yml

This file was deleted.

0 comments on commit a2f9fef

Please sign in to comment.