Improve internal firewall rules on Google Cloud

* Whitelist internal traffic between controllers and workers
* Switch to tag-based firewall policies rather than source IP
This commit is contained in:
Dalton Hubble
2017-11-07 23:21:12 -08:00
parent b1b611b22c
commit 451fd86470
4 changed files with 94 additions and 22 deletions

View File

@ -67,7 +67,7 @@ resource "google_compute_instance_template" "worker" {
can_ip_forward = true
tags = ["worker"]
tags = ["worker", "${var.cluster_name}-worker"]
lifecycle {
# To update an Instance Template, Terraform should replace the existing resource