-
Notifications
You must be signed in to change notification settings - Fork 0
/
ontop-k8s-job.yaml
44 lines (44 loc) · 1.28 KB
/
ontop-k8s-job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: batch/v1
kind: Job
metadata:
name: ontop-materializer
labels:
component: ontop
tier: api
app: idorg
deployment: hq
environment: staging
spec:
template:
spec:
containers:
- name: ontop
image: identifiersorg/ontop:1.1.0 #ontop + postgresql jdbc driver + curl
workingDir: "/tmp"
command: ["/bin/sh", "-c"]
args:
- >-
wget --no-check-certificate -q https://raw.githubusercontent.com/identifiers-org/ontop/refs/heads/main/update-triples-script.sh &&
bash update-triples-script.sh
env:
- name: ONTOP_DB_URL
value: "jdbc:postgresql://hq-postgresql:5432/dbhqregistry"
- name: ONTOP_DB_USER
valueFrom:
secretKeyRef:
name: hq-registry-database-credentials
key: username
- name: ONTOP_DB_PASSWORD
valueFrom:
secretKeyRef:
name: hq-registry-database-credentials
key: password
- name: ONTOP_GH_TOKEN
valueFrom:
secretKeyRef:
name: github-credentials
key: auth-token
- name: ONTOP_LOG_LEVEL
value: ERROR
restartPolicy: Never
backoffLimit: 4