feat: update consul etcd check

- check the health api endpoint
This commit is contained in:
Ben Vincent 2025-01-26 20:04:38 +11:00
parent afd3405c98
commit 8d927855fb

View File

@ -49,11 +49,13 @@ consul::services:
address: "%{facts.networking.ip}" address: "%{facts.networking.ip}"
port: 2379 port: 2379
checks: checks:
- id: 'etcd_tcp_check' - id: 'etcd_http_health_check'
name: 'ETCD TCP Check' name: 'ETCD HTTP Health Check'
tcp: "%{facts.networking.ip}:2379" http: "https://%{facts.networking.ip}:2379/health"
method: 'GET'
interval: '10s' interval: '10s'
timeout: '1s' timeout: '1s'
tls_skip_verify: true
profiles::consul::client::node_rules: profiles::consul::client::node_rules:
- resource: service - resource: service
segment: etcd segment: etcd