Files
demo-vivek-11/score-lab.yaml
Jonathan Boniface 30dc34e700 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>
2026-09-30 21:19:40 +01:00

52 lines
1.6 KiB
YAML

apiVersion: score.dev/v1b1
metadata:
name: demo-vivek-11
labels:
app: demo-vivek-11
containers:
main:
image: .
variables:
# The Watcher's OTel work lands in overlays/otel/, which only ArgoCD reads. On the
# orchestrator path nothing consumes that overlay, so without these variables the
# renovated app emits no telemetry at all and never appears in Grafana.
OTEL_SERVICE_NAME: "demo-vivek-11"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.monitoring.svc.cluster.local:4318"
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
OTEL_RESOURCE_ATTRIBUTES: "service.name=demo-vivek-11"
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:
web:
port: 80
targetPort: 8080
resources:
env:
type: environment
ingress:
type: workload-ingress
params:
name: demo-vivek-11
hostname: demo-vivek-11.apps.lab.crucible.kyndemo.live
service_name: demo-vivek-11
service_port: 80
# No database until one exists on the lab: CloudNativePG is not installed there. When it is
# restored, add back DATABASE_URL using ${resources.db.hostname} and ${resources.db.database}.
# db:
# type: postgres