1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

Make the doc discoverable from where health checks are defined

This commit is contained in:
Abu Kashem
2020-05-11 15:49:03 -04:00
parent dcd415c573
commit 3bc71bb646
5 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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': {

View File

@@ -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': {