Skip to content

Commit

Permalink
Add separate GraphDB instance for DKG imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Dec 21, 2023
1 parent 56c459d commit 7ff710c
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 5 deletions.
6 changes: 3 additions & 3 deletions k8s/dataset-knowledge-graph/cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ spec:
imagePullPolicy: Always
env:
- name: GRAPHDB_URL
value: "http://graphdb"
value: "http://dataset-knowledge-graph-graphdb"
- name: GRAPHDB_USERNAME
valueFrom:
secretKeyRef:
name: graphdb
name: dataset-knowledge-graph-graphdb
key: username
- name: GRAPHDB_PASSWORD
valueFrom:
secretKeyRef:
name: graphdb
name: dataset-knowledge-graph-graphdb
key: password
restartPolicy: OnFailure
imagePullSecrets:
Expand Down
10 changes: 10 additions & 0 deletions k8s/dataset-knowledge-graph/graphdb-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: dataset-knowledge-graph-graphdb
spec:
ports:
- port: 80
targetPort: 7200
selector:
app: dataset-knowledge-graph-graphdb
47 changes: 47 additions & 0 deletions k8s/dataset-knowledge-graph/graphdb-stateful-set.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: dataset-knowledge-graph-graphdb
spec:
replicas: 1
selector:
matchLabels:
app: dataset-knowledge-graph-graphdb
serviceName: dataset-knowledge-graph-graphdb
template:
metadata:
labels:
app: dataset-knowledge-graph-graphdb
spec:
containers:
- name: database
image: ontotext/graphdb:10.5.0
resources:
requests:
memory: 1.5Gi
limits:
memory: 6Gi
env:
- name: GDB_JAVA_OPTS
value: |
-Dgraphdb.workbench.cors.enable=true
-Dgraphdb.engine.parallel-import=false
- name: GDB_HEAP_SIZE
value: 3g
volumeMounts:
- mountPath: "/opt/graphdb/home"
name: data
ports:
- containerPort: 7200
imagePullSecrets:
- name: ghcr
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Gi
storageClassName: do-block-storage
4 changes: 2 additions & 2 deletions k8s/graphdb/graphdb-stateful-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
-Dgraphdb.workbench.cors.enable=true
-Dgraphdb.engine.parallel-import=false
- name: GDB_HEAP_SIZE
value: 8g
value: 9g
volumeMounts:
- mountPath: "/opt/graphdb/home"
name: data
Expand All @@ -43,5 +43,5 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 8Gi # Changed to 20Gi.
storage: 8Gi # Changed to 200Gi.
storageClassName: do-block-storage

0 comments on commit 7ff710c

Please sign in to comment.