mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-19 10:01:33 +02:00
google: Use regional instance templates for workers
* Use regional instance templates for the worker node regional managed instance groups. Regional instance templates are kept in the associated region, whereas the older "global" instance templates were kept in a particular region (regardless of where the MIG region) so outages in a region X could affect clusters in a region Y which is undesired
This commit is contained in:
@ -8,7 +8,7 @@ resource "google_compute_region_instance_group_manager" "workers" {
|
||||
region = var.region
|
||||
version {
|
||||
name = "default"
|
||||
instance_template = google_compute_instance_template.worker.self_link
|
||||
instance_template = google_compute_region_instance_template.worker.self_link
|
||||
}
|
||||
|
||||
# Roll out MIG instance template changes by replacing instances.
|
||||
@ -58,7 +58,7 @@ resource "google_compute_health_check" "worker" {
|
||||
}
|
||||
|
||||
# Worker instance template
|
||||
resource "google_compute_instance_template" "worker" {
|
||||
resource "google_compute_region_instance_template" "worker" {
|
||||
name_prefix = "${var.name}-worker-"
|
||||
description = "Worker Instance template"
|
||||
machine_type = var.machine_type
|
||||
|
Reference in New Issue
Block a user