diff options
author | Alec Warner <antarus@gentoo.org> | 2018-12-27 14:11:34 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2019-08-09 11:07:13 -0700 |
commit | fa3c92e8799e7792883fd38da6ee09f8d7a10598 (patch) | |
tree | f3acac4a344f6203b5b94d6710e93779c1739d91 | |
parent | Update description. (diff) | |
download | antarus-fa3c92e8799e7792883fd38da6ee09f8d7a10598.tar.gz antarus-fa3c92e8799e7792883fd38da6ee09f8d7a10598.tar.bz2 antarus-fa3c92e8799e7792883fd38da6ee09f8d7a10598.zip |
Add target pool for our loadbalancer.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r-- | src/infra.gentoo.org/rsync.tf | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/infra.gentoo.org/rsync.tf b/src/infra.gentoo.org/rsync.tf index 6c90fba..f856ba2 100644 --- a/src/infra.gentoo.org/rsync.tf +++ b/src/infra.gentoo.org/rsync.tf @@ -55,7 +55,8 @@ resource "google_compute_region_instance_group_manager" "rsync-node-mig" { instance_template = "${google_compute_instance_template.rsync-node-template.self_link}" update_strategy = "NONE" region = "us-central1" - target_size = 1 + target_size = 1 + target_pools = ["${google_compute_target_pool.rsync-in2.self_link}"] } resource "google_compute_region_autoscaler" "rsync-autoscaler" { @@ -71,6 +72,16 @@ resource "google_compute_region_autoscaler" "rsync-autoscaler" { } } +resource "google_compute_target_pool" "rsync-in2" { + name = "rsync-in2" +} + +//data "google_compute_forwarding_rule" "rsync-dev" { +// name = "rsync-dev" +// ip_address = "35.190.132.250" +// ports = ["873"] +//} + resource "google_compute_firewall" "rsync-in" { name = "rsync-in" network = "${google_compute_network.default.self_link}" |