feat: update consul etcd check (#216)

- check the health api endpoint

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/216
This commit is contained in:
Ben Vincent 2025-01-26 20:05:18 +11:00
parent afd3405c98
commit 0222f5ec4a

View File

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