From 060befd0271fd86c90c0dc0fe48629f113181d2a Mon Sep 17 00:00:00 2001 From: Filiprogrammer <44641787+Filiprogrammer@users.noreply.github.com> Date: Mon, 29 Jul 2024 21:23:57 +0200 Subject: [PATCH] docs: fix leader node readiness probe example [skip ci] Add the missing SERVER_ACTIVE state to the readiness probe. Without this, a node that is ready to accept RPC calls would be incorrectly considered not ready. --- docs/leader_election.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/leader_election.md b/docs/leader_election.md index 8ac940b35..9089eb2b7 100644 --- a/docs/leader_election.md +++ b/docs/leader_election.md @@ -89,7 +89,7 @@ readinessProbe: command: [ "/bin/sh", "-c", - "set -e; set -o pipefail; curl -s -k -o - https://localhost:8080/v1/state | jq .'State' | grep -E 'NON_EXISTING|LOCKED|UNLOCKED|RPC_ACTIVE'", + "set -e; set -o pipefail; curl -s -k -o - https://localhost:8080/v1/state | jq .'State' | grep -E 'NON_EXISTING|LOCKED|UNLOCKED|RPC_ACTIVE|SERVER_ACTIVE'", ] periodSeconds: 1 ```