1
0
Fork 0

feat(loadbalancer): use http for health checking, ping /healthz ingress-nginx endpoint

This commit is contained in:
Vojtěch Mareš 2024-06-30 22:06:44 +02:00
parent 43708777b4
commit be22d97ab9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -24,6 +24,18 @@ resource "hcloud_load_balancer_service" "ingress_workers_tcp_80" {
listen_port = 80
destination_port = 32080
proxyprotocol = true
health_check {
protocol = "http"
port = 32080
interval = 5
timeout = 3
retries = 1
http {
path = "/healthz"
}
}
}
resource "hcloud_load_balancer_service" "ingress_workers_tcp_443" {
@ -32,6 +44,18 @@ resource "hcloud_load_balancer_service" "ingress_workers_tcp_443" {
listen_port = 443
destination_port = 32443
proxyprotocol = true
health_check {
protocol = "http"
port = 32080
interval = 5
timeout = 3
retries = 1
http {
path = "/healthz"
}
}
}
resource "cloudflare_record" "ingress_cthulhu_k8s_vxm_cz" {