You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
832 B

  1. output "master_ip_addresses" {
  2. value = {
  3. for key, instance in google_compute_instance.master :
  4. instance.name => {
  5. "private_ip" = instance.network_interface.0.network_ip
  6. "public_ip" = instance.network_interface.0.access_config.0.nat_ip
  7. }
  8. }
  9. }
  10. output "worker_ip_addresses" {
  11. value = {
  12. for key, instance in google_compute_instance.worker :
  13. instance.name => {
  14. "private_ip" = instance.network_interface.0.network_ip
  15. "public_ip" = instance.network_interface.0.access_config.0.nat_ip
  16. }
  17. }
  18. }
  19. output "ingress_controller_lb_ip_address" {
  20. value = length(var.ingress_whitelist) > 0 ? google_compute_address.worker_lb.0.address : ""
  21. }
  22. output "control_plane_lb_ip_address" {
  23. value = length(var.api_server_whitelist) > 0 ? google_compute_forwarding_rule.master_lb.0.ip_address : ""
  24. }