diff --git a/data/data/aws/vpc/master-elb.tf b/data/data/aws/vpc/master-elb.tf index fcf9fd0ee1..6fff3d8b28 100644 --- a/data/data/aws/vpc/master-elb.tf +++ b/data/data/aws/vpc/master-elb.tf @@ -57,6 +57,7 @@ resource "aws_lb_target_group" "api_internal" { var.tags, ) + // Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver health_check { healthy_threshold = 2 unhealthy_threshold = 2 @@ -84,6 +85,7 @@ resource "aws_lb_target_group" "api_external" { var.tags, ) + // Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver health_check { healthy_threshold = 2 unhealthy_threshold = 2 diff --git a/data/data/gcp/network/lb-private.tf b/data/data/gcp/network/lb-private.tf index e979f74541..8d4341670a 100644 --- a/data/data/gcp/network/lb-private.tf +++ b/data/data/gcp/network/lb-private.tf @@ -4,6 +4,7 @@ resource "google_compute_address" "cluster_ip" { subnetwork = local.master_subnet } +// Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver resource "google_compute_health_check" "api_internal" { name = "${var.cluster_id}-api-internal" diff --git a/data/data/gcp/network/lb-public.tf b/data/data/gcp/network/lb-public.tf index fa3b74c935..f2c71b70d8 100644 --- a/data/data/gcp/network/lb-public.tf +++ b/data/data/gcp/network/lb-public.tf @@ -4,6 +4,7 @@ resource "google_compute_address" "cluster_public_ip" { name = "${var.cluster_id}-cluster-public-ip" } +// Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver resource "google_compute_http_health_check" "api" { count = var.public_endpoints ? 1 : 0 diff --git a/upi/gcp/02_lb_ext.py b/upi/gcp/02_lb_ext.py index 06d561dc47..f65b4b0479 100644 --- a/upi/gcp/02_lb_ext.py +++ b/upi/gcp/02_lb_ext.py @@ -7,6 +7,7 @@ def GenerateConfig(context): 'region': context.properties['region'] } }, { + # Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver 'name': context.properties['infra_id'] + '-api-http-health-check', 'type': 'compute.v1.httpHealthCheck', 'properties': { diff --git a/upi/gcp/02_lb_int.py b/upi/gcp/02_lb_int.py index 768e0cc1da..5afbeea8ea 100644 --- a/upi/gcp/02_lb_int.py +++ b/upi/gcp/02_lb_int.py @@ -15,6 +15,7 @@ def GenerateConfig(context): 'subnetwork': context.properties['control_subnet'] } }, { + # Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver 'name': context.properties['infra_id'] + '-api-internal-health-check', 'type': 'compute.v1.healthCheck', 'properties': {