mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 17:49:32 +01:00
aaa8e0261a
* Background: A managed instance group of workers is used in backend services for global load balancing (HTTP/HTTPS Ingress) and output for custom global load balancing use cases * Add worker instances to a target pool load balancing TCP/UDP applications (NodePort or proxied). Output as `worker_target_pool` * Health check for workers with a healthy Ingress controller. Forward rules (regional) to target pools don't support different external and internal ports so choosing nodes with Ingress allows proxying as a workaround * A target pool is a logical grouping only. It doesn't add costs to clusters or worker pools
14 lines
389 B
HCL
14 lines
389 B
HCL
# Outputs for global load balancing
|
|
|
|
output "instance_group" {
|
|
description = "Worker managed instance group full URL"
|
|
value = "${google_compute_region_instance_group_manager.workers.instance_group}"
|
|
}
|
|
|
|
# Outputs for regional load balancing
|
|
|
|
output "target_pool" {
|
|
description = "Worker target pool self link"
|
|
value = "${google_compute_target_pool.workers.self_link}"
|
|
}
|