Add region to gcp instance template resource

* Configure the regional worker instance templates with the
region of the cluster. This defaults to the provider's region
which isn't always what you want and if left off causes an error
* Close #1512
This commit is contained in:
Dalton Hubble
2024-10-08 21:25:06 -07:00
parent e6989514a5
commit 6a5b808b17
3 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,7 @@ resource "google_compute_region_instance_template" "worker" {
name_prefix = "${var.name}-worker-"
description = "Worker Instance template"
machine_type = var.machine_type
region = var.region
metadata = {
user-data = data.ct_config.worker.rendered