Files
cloud-ip-validator/deploy/docker/control-api/control-api.docker.example.yaml
T

66 lines
1.5 KiB
YAML
Raw Normal View History

# Ready-to-copy control-api config for `docker compose` dev use — mock
# OpenStack mode (no credentials needed) with minimal seed data matching
# deploy/docker/.env.example's PROBER_SITE_ID / VALIDATOR_AGENT_VALIDATOR_ID
# defaults, so `docker compose up` works out of the box after:
#
# cp control-api.docker.example.yaml control-api.docker.yaml
#
# For a real deployment, start from configs/control-api.example.yaml
# instead (full schema reference, openstack.mode: real).
server:
listen_addr: ":8080"
database:
path: "/var/lib/cloud-ip-validator/control-api.db"
openstack:
mode: "mock"
orchestrator:
poll_interval_seconds: 5
self_check_timeout_seconds: 60
max_self_check_retries: 3
checking_window_seconds: 120
max_retries: 3
lease_ttl_seconds: 180
heartbeat_timeout_seconds: 30
fip_settle_seconds: 0
fip_scan_interval_seconds: 0
aggregation:
missing_counts_as_fail: true
validators:
- validator_id: "validator_01"
os_port_id: "mock-port-1"
sites:
- site_id: "site-1"
index: 1
check_types:
- name: "https"
enabled: true
targets: ["default-targets"]
- name: "icmp"
enabled: true
targets: ["default-targets"]
- name: "ssh"
enabled: false
targets: []
targets:
default-targets:
- "https://hub.docker.com"
- "https://github.com"
- "https://packages.ubuntu.com"
inbound_checks:
ports: [22, 80, 443, 8080]
icmp: true
ip_addresses:
- "203.0.113.10"
- "203.0.113.11"
- "203.0.113.12"