From 8d927855fbcf17e177d2b1de95527c10527b3bd7 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 26 Jan 2025 20:04:38 +1100 Subject: [PATCH] feat: update consul etcd check - check the health api endpoint --- hieradata/roles/infra/etcd/node.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hieradata/roles/infra/etcd/node.yaml b/hieradata/roles/infra/etcd/node.yaml index ff0231b..38e933d 100644 --- a/hieradata/roles/infra/etcd/node.yaml +++ b/hieradata/roles/infra/etcd/node.yaml @@ -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 -- 2.47.3