From 41622c1545d0972aaa011ab1afbded1658d79620 Mon Sep 17 00:00:00 2001 From: Fabiano Franz Date: Mon, 13 Apr 2020 17:15:22 -0300 Subject: [PATCH] data/azure/vnet: switch to HTTPS probes for lbs --- data/data/azure/vnet/internal-lb.tf | 6 ++++-- data/data/azure/vnet/public-lb.tf | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/data/data/azure/vnet/internal-lb.tf b/data/data/azure/vnet/internal-lb.tf index 440ea5275fe..f91407fb914 100644 --- a/data/data/azure/vnet/internal-lb.tf +++ b/data/data/azure/vnet/internal-lb.tf @@ -125,7 +125,8 @@ resource "azurerm_lb_probe" "internal_lb_probe_sint" { number_of_probes = 2 loadbalancer_id = azurerm_lb.internal.id port = 22623 - protocol = "TCP" + protocol = "HTTPS" + request_path = "/healthz" } resource "azurerm_lb_probe" "internal_lb_probe_api_internal" { @@ -135,5 +136,6 @@ resource "azurerm_lb_probe" "internal_lb_probe_api_internal" { number_of_probes = 2 loadbalancer_id = azurerm_lb.internal.id port = 6443 - protocol = "TCP" + protocol = "HTTPS" + request_path = "/readyz" } diff --git a/data/data/azure/vnet/public-lb.tf b/data/data/azure/vnet/public-lb.tf index b9e7d8272ff..c265ed28c13 100644 --- a/data/data/azure/vnet/public-lb.tf +++ b/data/data/azure/vnet/public-lb.tf @@ -161,5 +161,6 @@ resource "azurerm_lb_probe" "public_lb_probe_api_internal" { number_of_probes = 2 loadbalancer_id = azurerm_lb.public.id port = 6443 - protocol = "TCP" + protocol = "HTTPS" + request_path = "/readyz" }