From 30dc34e7008d70fe5ae48f1501c1627d471a4ea1 Mon Sep 17 00:00:00 2001 From: Jonathan Boniface Date: Wed, 30 Sep 2026 21:19:40 +0100 Subject: [PATCH] Declare readiness and liveness probes in score-lab.yaml Required by the platform's score-k8s policy check: the platform cannot know an app's health endpoint. Spring Boot's actuator answers {"status":"UP"} at /actuator/health on 8080. The platform derives a startupProbe from the liveness probe, so a slow JVM start is not killed. Co-Authored-By: Claude Opus 5.5 --- score-lab.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/score-lab.yaml b/score-lab.yaml index 3612d50..92bd595 100644 --- a/score-lab.yaml +++ b/score-lab.yaml @@ -18,6 +18,16 @@ containers: OTEL_METRICS_EXPORTER: "otlp" OTEL_TRACES_EXPORTER: "otlp" OTEL_LOGS_EXPORTER: "none" + # Required by the platform's policy check. Spring Boot's actuator answers {"status":"UP"} here. + # The platform adds a startupProbe from the liveness probe, so a slow JVM start is not killed. + readinessProbe: + httpGet: + path: /actuator/health + port: 8080 + livenessProbe: + httpGet: + path: /actuator/health + port: 8080 service: ports: