Set the Google Cloud minimum CPU platform to Intel Haswell

* Intel Haswell or better is available in every zone around the world
* Neither Kubernetes nor Typhoon have a particular minimum processor
family. However, a few Google Cloud zones still default to Sandy/Ivy
bridge (scheduled to shift April 2019). Price is only based on machine
type so it is beneficial to opt for the next processor family
* Intel Haswell is a suitable minimum since it still allows plenty of
liberty in choosing any region or machine type
* Likely a slight increase to preemption probability in a few zones,
but any lower probability on Sandy/Ivy bridge is due to lower
desirability as they're phased out
* https://cloud.google.com/compute/docs/regions-zones/
This commit is contained in:
Dalton Hubble
2019-02-18 12:54:07 -08:00
parent e483c81ce9
commit ba4c5de052
5 changed files with 22 additions and 12 deletions

View File

@ -23,9 +23,10 @@ resource "google_compute_region_instance_group_manager" "workers" {
# Worker instance template
resource "google_compute_instance_template" "worker" {
name_prefix = "${var.name}-worker-"
description = "Worker Instance template"
machine_type = "${var.machine_type}"
name_prefix = "${var.name}-worker-"
description = "Worker Instance template"
machine_type = "${var.machine_type}"
min_cpu_platform = "Intel Haswell"
metadata {
user-data = "${data.ct_config.worker-ignition.rendered}"