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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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': {
|
||||
|
||||
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user