Skip to content

Commit

Permalink
fix: Update Backend Service Java Version (#392)
Browse files Browse the repository at this point in the history
* Add readiness / liveness check for backend service

* Add pod logs

* Update Java Version for backend service

* Remove pod logs
  • Loading branch information
hemantxpatel authored Jul 22, 2024
1 parent 5e05899 commit c22398e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions mxd/backend-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@ resource "kubernetes_deployment" "backend-service" {
name = "JAVA_TOOL_OPTIONS"
value = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044"
}
readiness_probe {
http_get {
path = "/api/check/readiness"
port = 8080
}
initial_delay_seconds = 30
period_seconds = 10
timeout_seconds = 5
failure_threshold = 10
success_threshold = 1
}
liveness_probe {
http_get {
path = "/api/check/liveness"
port = 8080
}
initial_delay_seconds = 30
period_seconds = 10
timeout_seconds = 5
failure_threshold = 10
success_threshold = 1
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion mxd/backend-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
#

FROM eclipse-temurin:21.0.2_13-jre-alpine
FROM eclipse-temurin:22.0.1_8-jre-alpine

WORKDIR /app

Expand Down
1 change: 1 addition & 0 deletions mxd/backend-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies {
implementation(libs.apache.commons)
implementation(libs.postgresql)
implementation(libs.edc.boot)
runtimeOnly(libs.edc.api.observability)

testImplementation(libs.junit.jupiter.params)
testImplementation(libs.assertj)
Expand Down
1 change: 1 addition & 0 deletions mxd/backend-service/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ edc-http = { module = "org.eclipse.edc:http", version.ref = "edc" }
edc-http-lib = { module = "org.eclipse.edc:http-lib", version.ref = "edc" }
edc-connector-core = { module = "org.eclipse.edc:connector-core", version.ref = "edc" }
edc-sql-core = {module = "org.eclipse.edc:sql-core",version.ref = "edc"}
edc-api-observability = { module = "org.eclipse.edc:api-observability", version.ref = "edc" }
apache-commons = { module = "org.apache.commons:commons-dbcp2", version.ref = "commons" }
edc-configuration-filesystem = { module = "org.eclipse.edc:configuration-filesystem", version.ref = "edc" }
postgres-containers = { module = "org.testcontainers:postgresql", version.ref = "testcontainers" }
Expand Down

0 comments on commit c22398e

Please sign in to comment.