mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 07:39:33 +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
44 lines
1.1 KiB
HCL
44 lines
1.1 KiB
HCL
output "kubeconfig-admin" {
|
|
value = "${module.bootkube.kubeconfig-admin}"
|
|
}
|
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
output "ingress_static_ipv4" {
|
|
description = "Global IPv4 address for proxy load balancing to the nearest Ingress controller"
|
|
value = "${google_compute_global_address.ingress-ipv4.address}"
|
|
}
|
|
|
|
output "ingress_static_ipv6" {
|
|
description = "Global IPv6 address for proxy load balancing to the nearest Ingress controller"
|
|
value = "${google_compute_global_address.ingress-ipv6.address}"
|
|
}
|
|
|
|
# Outputs for worker pools
|
|
|
|
output "network_name" {
|
|
value = "${google_compute_network.network.name}"
|
|
}
|
|
|
|
output "kubeconfig" {
|
|
value = "${module.bootkube.kubeconfig-kubelet}"
|
|
}
|
|
|
|
# Outputs for custom firewalling
|
|
|
|
output "network_self_link" {
|
|
value = "${google_compute_network.network.self_link}"
|
|
}
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
output "worker_instance_group" {
|
|
description = "Worker managed instance group full URL"
|
|
value = "${module.workers.instance_group}"
|
|
}
|
|
|
|
output "worker_target_pool" {
|
|
description = "Worker target pool self link"
|
|
value = "${module.workers.target_pool}"
|
|
}
|