in observability/src/main/java/org/acme/observability/health/camel/CustomLivenessCheck.java [39:48]
protected void doCall(HealthCheckResultBuilder builder, Map<String, Object> options) {
int hits = hitCount.incrementAndGet();
// Flag the check as DOWN on every 5th invocation (but not on Kubernetes), else it is UP
if (hits % 5 == 0 && System.getenv("KUBERNETES_PORT") == null) {
builder.down();
} else {
builder.up();
}
}