I’m trying to use the GKE queued_provisioning feature here. But when I terraform apply
, the GKE API errors with “Error: error creating NodePool: googleapi: Error 400: Queued_provisioning requires reservation affinity to be set to none”. Does anyone have a code snippet of how to do that?
Like this
resource "google_container_node_pool" "my_node_pool" {
# ... (other node pool configurations) ...
queued_provisioning {
enabled = true
}
node_config {
# ... (other node configurations) ...
reservation_affinity {
consume_reservation_type = "NO_RESERVATION"
}
}
}