Commit 81ff3baf authored by Ilya Frolov's avatar Ilya Frolov

change bastion session affinity

parent b44fa438
......@@ -623,19 +623,20 @@ module "gcp-tcp-lb-altssh" {
#### Load balancer for bastion
module "gcp-tcp-lb-bastion" {
name = "gcp-tcp-lb-bastion"
lb_count = "${length(var.tcp_lbs_bastion["names"])}"
names = "${var.tcp_lbs_bastion["names"]}"
environment = "${var.environment}"
forwarding_port_ranges = "${var.tcp_lbs_bastion["forwarding_port_ranges"]}"
fqdn = "${var.lb_fqdn_bastion}"
gitlab_com_zone_id = "${var.gitlab_com_zone_id}"
environment = "${var.environment}"
region = "${var.region}"
health_check_ports = "${var.tcp_lbs_bastion["health_check_ports"]}"
instances = ["${module.bastion.instances_self_link}"]
lb_count = "${length(var.tcp_lbs_bastion["names"])}"
name = "gcp-tcp-lb-bastion"
names = "${var.tcp_lbs_bastion["names"]}"
project = "${var.project}"
region = "${var.region}"
session_affinity = "CLIENT_IP"
source = "../../modules/google/tcp-lb"
targets = ["bastion"]
forwarding_port_ranges = "${var.tcp_lbs_bastion["forwarding_port_ranges"]}"
health_check_ports = "${var.tcp_lbs_bastion["health_check_ports"]}"
instances = ["${module.bastion.instances_self_link}"]
}
##################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment