diff --git a/addons/orchestrator/templates/cmpd-raft.yaml b/addons/orchestrator/templates/cmpd-raft.yaml index 1061a736b..546a91fb5 100644 --- a/addons/orchestrator/templates/cmpd-raft.yaml +++ b/addons/orchestrator/templates/cmpd-raft.yaml @@ -18,19 +18,21 @@ spec: lifecycleActions: roleProbe: - exec: - command: - - /bin/bash - - -c - - | - role=$(curl -s http://127.0.0.1:3000/api/leader-check) - if [[ $role == "\"OK\"" ]]; then - echo -n "primary" - elif [[ $role == "\"Not leader\"" ]]; then - echo -n "secondary" - else - echo -n "" - fi + builtinHandler: custom + customHandler: + exec: + command: + - /bin/bash + - -c + - | + role=$(curl -s http://127.0.0.1:3000/api/leader-check) + if [[ $role == "\"OK\"" ]]; then + echo -n "primary" + elif [[ $role == "\"Not leader\"" ]]; then + echo -n "secondary" + else + echo -n "" + fi services: - name: orchestrator