mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 18:49:34 +01:00
d6d9e6c4b9
* Replace v0.11 bracket type hints with Terraform v0.12 list expressions * Use expression syntax instead of interpolated strings, where suggested * Update Google Cloud tutorial and worker pools documentation * Define Terraform and plugin version requirements in versions.tf * Require google ~> 2.5 to support Terraform v0.12 * Require ct ~> 0.3.2 to support Terraform v0.12
24 lines
750 B
HCL
24 lines
750 B
HCL
# Target pool for TCP/UDP load balancing
|
|
resource "google_compute_target_pool" "workers" {
|
|
name = "${var.name}-worker-pool"
|
|
region = var.region
|
|
session_affinity = "NONE"
|
|
|
|
health_checks = [
|
|
google_compute_http_health_check.workers.name,
|
|
]
|
|
}
|
|
|
|
# HTTP Health Check (for TCP/UDP load balancing)
|
|
# Forward rules (regional) to target pools don't support different external
|
|
# and internal ports. Health check for nodes with Ingress controllers that
|
|
# may support proxying or otherwise satisfy the check.
|
|
resource "google_compute_http_health_check" "workers" {
|
|
name = "${var.name}-target-pool-health"
|
|
description = "Health check for the worker target pool"
|
|
|
|
port = 10254
|
|
request_path = "/healthz"
|
|
}
|
|
|