mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-04-19 13:21:10 +02:00
Allow stopping Google Cloud controller nodes to resize them (#1424)
* Google Cloud requires VMs be stopped in order to update their properties. This is only allowed if explicitly enabled
This commit is contained in:
parent
fbe36b8b16
commit
734c8c2107
@ -56,6 +56,7 @@ resource "google_compute_instance" "controllers" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
can_ip_forward = true
|
can_ip_forward = true
|
||||||
|
allow_stopping_for_update = true
|
||||||
tags = ["${var.cluster_name}-controller"]
|
tags = ["${var.cluster_name}-controller"]
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
|
@ -33,6 +33,7 @@ resource "google_compute_instance" "controllers" {
|
|||||||
# use a zone in the region and wrap around (e.g. controllers > zones)
|
# use a zone in the region and wrap around (e.g. controllers > zones)
|
||||||
zone = element(local.zones, count.index)
|
zone = element(local.zones, count.index)
|
||||||
machine_type = var.controller_type
|
machine_type = var.controller_type
|
||||||
|
allow_stopping_for_update = true
|
||||||
|
|
||||||
metadata = {
|
metadata = {
|
||||||
user-data = data.ct_config.controllers.*.rendered[count.index]
|
user-data = data.ct_config.controllers.*.rendered[count.index]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user