Skip to content

Commit

Permalink
fixes for ebi k8s deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Aug 19, 2024
1 parent aa79943 commit e1e1e9c
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
docker tag ghcr.io/ebispot/grebi_resolver_service:${{github.sha}} ghcr.io/ebispot/grebi_resolver_service:${{ github.ref_name }}
docker push --all-tags ghcr.io/ebispot/grebi_resolver_service
- name: Build and push GrEBI summary service Docker image
run: |
cd grebi_summary_service
docker build -t ghcr.io/ebispot/grebi_summary_service:${{ github.sha }} .
docker tag ghcr.io/ebispot/grebi_summary_service:${{github.sha}} ghcr.io/ebispot/grebi_summary_service:${{ github.ref_name }}
docker push --all-tags ghcr.io/ebispot/grebi_summary_service
- name: Build and push GrEBI UI Docker image
run: |
cd grebi_ui
Expand Down
3 changes: 2 additions & 1 deletion grebi_resolver_service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

FROM maven:3.9.6-amazoncorretto-17
FROM maven:3.9-eclipse-temurin-11

RUN mkdir -p /opt
COPY . /opt/
RUN cd /opt/ && ls && mvn clean package assembly:single -DskipTests

Expand Down
4 changes: 2 additions & 2 deletions grebi_resolver_service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void main(String[] args) {
}

Javalin app = Javalin.create(config -> {
}).start(8080);
}).start("0.0.0.0", 8080);

app.get("/subgraphs", ctx -> {
ctx.contentType("application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void main(String[] args) throws FileNotFoundException {
}

Javalin app = Javalin.create(config -> {
}).start(8081);
}).start("0.0.0.0", 8081);

app.get("/", ctx -> {
ctx.contentType("application/json");
Expand Down
6 changes: 5 additions & 1 deletion k8chart/templates/grebi-backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
image: ghcr.io/ebispot/grebi_api:{{.Values.imageTag}}
imagePullPolicy: Always
ports:
- containerPort: 8080
- containerPort: 8090
resources:
requests:
memory: 8Gi
Expand All @@ -32,6 +32,10 @@ spec:
value: http://{{ .Release.Name }}-solr:8983
- name: GREBI_NEO4J_HOST
value: bolt://{{ .Release.Name }}-neo4j:7687
- name: GREBI_RESOLVER_HOST
value: http://{{ .Release.Name }}-resolver:8080
- name: GREBI_SUMMARY_HOST
value: http://{{ .Release.Name }}-summary-service:8081
- name: GREBI_CONTEXT_PATH
value: /kg
- name: JDK_JAVA_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion k8chart/templates/grebi-backend-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ spec:
type: NodePort
ports:
- name: "application"
port: 8080
port: 8090
selector:
app: {{ .Release.Name }}-backend
10 changes: 5 additions & 5 deletions k8chart/templates/grebi-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ spec:
name: {{ .Release.Name }}-neo4j-storage
resources:
requests:
memory: 40Gi
memory: 30Gi
cpu: 4
limits:
memory: 40Gi
memory: 30Gi
cpu: 4
env:
- name: NEO4J_AUTH
value: none
- name: NEO4J_server_memory_heap_initial__size
value: 15000m
value: 12000m
- name: NEO4J_server_memory_heap_max__size
value: 15000m
value: 12000m
- name: NEO4J_server_memory_pagecache_size
value: 15g
value: 12g
- name: NEO4J_PLUGINS
value: \["apoc"\]
ports:
Expand Down
5 changes: 3 additions & 2 deletions k8chart/templates/grebi-resolver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ spec:
containers:
- name: resolver
image: ghcr.io/ebispot/grebi_resolver_service:{{.Values.imageTag}}
imagePullPolicy: Always
volumeMounts:
- mountPath: "/data"
name: {{ .Release.Name }}-resolver-storage
resources:
requests:
memory: 8Gi
memory: 16Gi
cpu: 2
limits:
memory: 8Gi
memory: 16Gi
cpu: 2
env:
- name: GREBI_ROCKSDB_SEARCH_PATH
Expand Down
5 changes: 3 additions & 2 deletions k8chart/templates/grebi-summary-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ spec:
containers:
- name: summary-service
image: ghcr.io/ebispot/grebi_summary_service:{{.Values.imageTag}}
imagePullPolicy: Always
volumeMounts:
- mountPath: "/data"
name: {{ .Release.Name }}-summary-service-storage
resources:
requests:
memory: 2Gi
cpu: 2
cpu: 0.5
limits:
memory: 2Gi
cpu: 2
cpu: 0.5
env:
- name: GREBI_SUMMARY_JSON_SEARCH_PATH
value: /data
Expand Down
4 changes: 2 additions & 2 deletions k8chart/templates/grebi-summary-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app: {{ .Release.Name }}-summary-service
spec:
ports:
- port: 8080
targetPort: 8080
- port: 8081
targetPort: 8081
name: http
protocol: TCP
selector:
Expand Down

0 comments on commit e1e1e9c

Please sign in to comment.