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.
This commit is contained in:
Filiprogrammer 2024-07-29 21:23:57 +02:00
parent b7c59b36a7
commit 060befd027
No known key found for this signature in database
GPG Key ID: 85825F370BF5E2A1

View File

@ -89,7 +89,7 @@ readinessProbe:
command: [ command: [
"/bin/sh", "/bin/sh",
"-c", "-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 periodSeconds: 1
``` ```