From 1805e95b69b88f659a87ffd6659b0535a444eafb Mon Sep 17 00:00:00 2001
From: David Medinets <david.medinets@gmail.com>
Date: Tue, 22 Sep 2020 03:56:47 -0400
Subject: [PATCH] Change health check from TCP to HTTPS (#6487)

I kept seeing `TLS handshake error from 10.250.250.158:63770: EOF` from two IP addresses that correlate to my ELB. Changing the health check from TCP to HTTPS stopped the errors from being generated.
---
 contrib/terraform/aws/modules/elb/main.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/terraform/aws/modules/elb/main.tf b/contrib/terraform/aws/modules/elb/main.tf
index c465eecd0..0733a8a3a 100644
--- a/contrib/terraform/aws/modules/elb/main.tf
+++ b/contrib/terraform/aws/modules/elb/main.tf
@@ -42,7 +42,7 @@ resource "aws_elb" "aws-elb-api" {
     healthy_threshold   = 2
     unhealthy_threshold = 2
     timeout             = 3
-    target              = "TCP:${var.k8s_secure_api_port}"
+    target              = "HTTPS:${var.k8s_secure_api_port}/healthz"
     interval            = 30
   }
 
-- 
GitLab