feat(loadbalancer): use http for health checking, ping /healthz ingress-nginx endpoint
This commit is contained in:
parent
43708777b4
commit
be22d97ab9
1 changed files with 24 additions and 0 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Reference in a new issue