Skip to content

Commit 56e0318

Browse files
authored
Enable liveness checks for Cassandra (#556)
* Update cassandra-statefulset.yaml * refactor
1 parent aa040a6 commit 56e0318

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cassandra/cassandra-statefulset.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ spec:
7474
- /ready-probe.sh
7575
initialDelaySeconds: 15
7676
timeoutSeconds: 5
77+
periodSeconds: 10
78+
failureThreshold: 3
79+
livenessProbe:
80+
exec:
81+
command:
82+
- /bin/bash
83+
- -c
84+
- "nodetool status"
85+
initialDelaySeconds: 15
86+
timeoutSeconds: 5
87+
periodSeconds: 10
88+
failureThreshold: 3
7789
# These volume mounts are persistent. They are like inline claims,
7890
# but not exactly because the names need to match exactly one of
7991
# the stateful pod volumes.

0 commit comments

Comments
 (0)