From 36e97233d65d2ac0024d03a3e90102f0c6650d29 Mon Sep 17 00:00:00 2001 From: Austin Horning <75055958+austin-space@users.noreply.github.com> Date: Mon, 1 Aug 2022 01:00:04 -0700 Subject: [PATCH] Adds load balancer ip variable to terraform modules (#2690) * Adds load balancer ip variable to terraform modules Co-authored-by: Robert Bailey --- install/terraform/modules/helm3/helm.tf | 4 ++++ install/terraform/modules/helm3/variables.tf | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/install/terraform/modules/helm3/helm.tf b/install/terraform/modules/helm3/helm.tf index a3442ce4e3..646d1b536e 100644 --- a/install/terraform/modules/helm3/helm.tf +++ b/install/terraform/modules/helm3/helm.tf @@ -113,4 +113,8 @@ resource "helm_release" "agones" { value = var.gameserver_maxPort } + set { + name = "agones.allocator.service.loadBalancerIP" + value = var.load_balancer_ip + } } diff --git a/install/terraform/modules/helm3/variables.tf b/install/terraform/modules/helm3/variables.tf index b87c1cc952..8d3ef590a8 100644 --- a/install/terraform/modules/helm3/variables.tf +++ b/install/terraform/modules/helm3/variables.tf @@ -83,4 +83,8 @@ variable "gameserver_maxPort" { variable "gameserver_namespaces" { default = ["default"] type = list(string) -} \ No newline at end of file +} + +variable "load_balancer_ip" { + default = "" +}