From 59d68d391990c028bc9b7ef996fa4af52e43cba7 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Wed, 20 Nov 2024 19:41:16 +0100 Subject: [PATCH] feat: add health check status codes --- loadbalancer.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loadbalancer.tf b/loadbalancer.tf index d6be46a..9dcbc87 100644 --- a/loadbalancer.tf +++ b/loadbalancer.tf @@ -34,6 +34,8 @@ resource "hcloud_load_balancer_service" "ingress_workers_tcp_80" { http { path = "/healthz" + + status_codes = ["2??", "3??"] } } } @@ -54,6 +56,8 @@ resource "hcloud_load_balancer_service" "ingress_workers_tcp_443" { http { path = "/healthz" + + status_codes = ["2??", "3??"] } } }