2026-08-21 07:34:45 +03:00
|
|
|
# Validator-agent configuration. Runs on each validator VM. validator_id
|
|
|
|
|
# must match one of the control-api config's `validators[].validator_id`.
|
|
|
|
|
|
|
|
|
|
validator_id: "validator_01"
|
|
|
|
|
control_api_url: "http://control-api.internal:8080"
|
2026-10-01 11:35:24 +03:00
|
|
|
# Имя переменной окружения с токеном агентов control-api (тот же, что у
|
|
|
|
|
# prober; CONTROL_API_AGENT_TOKEN на стороне control-api). Нужен для записи
|
|
|
|
|
# результатов/событий; register/heartbeat/получение задания работают без него.
|
|
|
|
|
# Токен отправляется только в control-api — не на ip_echo_urls и не на цели
|
|
|
|
|
# проверок.
|
|
|
|
|
control_api_token_env: "CONTROL_API_AGENT_TOKEN"
|
2026-08-21 07:34:45 +03:00
|
|
|
poll_interval_seconds: 5
|
|
|
|
|
|
|
|
|
|
self_check:
|
|
|
|
|
timeout_seconds: 10
|
2026-08-21 11:04:49 +03:00
|
|
|
# Must be a resource genuinely outside the cloud project — OpenStack only
|
|
|
|
|
# applies floating-IP SNAT to traffic leaving via the external network,
|
|
|
|
|
# so anything reachable over the project's internal network (including
|
|
|
|
|
# control-api itself, if it's on the same internal network) would report
|
|
|
|
|
# this validator's private address instead, regardless of whether the
|
|
|
|
|
# floating IP is correctly attached. Tried in order; falls through to the
|
|
|
|
|
# next URL only on error/timeout, never on a genuine mismatch. Defaults
|
|
|
|
|
# to these two public services if omitted.
|
|
|
|
|
ip_echo_urls:
|
|
|
|
|
- "https://api.ipify.org"
|
|
|
|
|
- "https://ifconfig.me/ip"
|
2026-08-21 07:34:45 +03:00
|
|
|
|
|
|
|
|
checks:
|
|
|
|
|
https_timeout_seconds: 10
|
|
|
|
|
icmp_timeout_seconds: 5
|
|
|
|
|
icmp_count: 3
|
|
|
|
|
ssh:
|
|
|
|
|
enabled: false
|
|
|
|
|
timeout_seconds: 5
|