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 <noreply@anthropic.com>
This commit is contained in:
2026-09-30 21:19:40 +01:00
parent f8de42521e
commit 30dc34e700

View File

@@ -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: