From 56e0318b6175c722a89734b7fc7fc4face165547 Mon Sep 17 00:00:00 2001 From: rvs1729 Date: Mon, 5 May 2025 11:29:58 -0400 Subject: [PATCH] Enable liveness checks for Cassandra (#556) * Update cassandra-statefulset.yaml * refactor --- cassandra/cassandra-statefulset.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cassandra/cassandra-statefulset.yaml b/cassandra/cassandra-statefulset.yaml index 536fd7fb..ca5a21e3 100644 --- a/cassandra/cassandra-statefulset.yaml +++ b/cassandra/cassandra-statefulset.yaml @@ -74,6 +74,18 @@ spec: - /ready-probe.sh initialDelaySeconds: 15 timeoutSeconds: 5 + periodSeconds: 10 + failureThreshold: 3 + livenessProbe: + exec: + command: + - /bin/bash + - -c + - "nodetool status" + initialDelaySeconds: 15 + timeoutSeconds: 5 + periodSeconds: 10 + failureThreshold: 3 # These volume mounts are persistent. They are like inline claims, # but not exactly because the names need to match exactly one of # the stateful pod volumes.