From 03378209d6c4723ffe5e2c72ab364fd008edfb47 Mon Sep 17 00:00:00 2001 From: ddelpiano Date: Thu, 16 Apr 2026 16:08:10 +0200 Subject: [PATCH 1/2] liveness probe to check message processing --- applications/events/deploy/templates/deployments.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/applications/events/deploy/templates/deployments.yml b/applications/events/deploy/templates/deployments.yml index b2f14f9b9..68602e1c3 100644 --- a/applications/events/deploy/templates/deployments.yml +++ b/applications/events/deploy/templates/deployments.yml @@ -62,11 +62,15 @@ spec: periodSeconds: 15 timeoutSeconds: 5 livenessProbe: - tcpSocket: - port: client - initialDelaySeconds: 30 + exec: + command: + - /bin/sh + - -c + - /opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 --timeout 10000 + initialDelaySeconds: 60 periodSeconds: 30 - timeoutSeconds: 5 + timeoutSeconds: 15 + failureThreshold: 3 lifecycle: preStop: exec: From 07d9720d0307b31c164ac2a01bf8154f382eb041 Mon Sep 17 00:00:00 2001 From: ddelpiano Date: Thu, 16 Apr 2026 23:25:28 +0200 Subject: [PATCH 2/2] fixing timeout flag not used anymore --- applications/events/deploy/templates/deployments.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/events/deploy/templates/deployments.yml b/applications/events/deploy/templates/deployments.yml index 68602e1c3..dca328df9 100644 --- a/applications/events/deploy/templates/deployments.yml +++ b/applications/events/deploy/templates/deployments.yml @@ -66,7 +66,7 @@ spec: command: - /bin/sh - -c - - /opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 --timeout 10000 + - timeout 10 /opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 initialDelaySeconds: 60 periodSeconds: 30 timeoutSeconds: 15