File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
gke/standard/zonal/reservation Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -106,3 +106,26 @@ resource "google_container_node_pool" "specific_node_pool" {
106106 ]
107107}
108108# [END gke_standard_zonal_reservation_specific_node_pool]
109+
110+ # [START gke_standard_zonal_reservation_flex]
111+ resource "google_container_node_pool" "reservation_flex" {
112+ name = " gke_standard_zonal_reservation_flex"
113+ cluster = google_container_cluster. default . name
114+ location = google_container_cluster. default . location
115+
116+ initial_node_count = 0
117+ autoscaling {
118+ total_min_node_count = 0
119+ total_max_node_count = 1
120+ }
121+ node_config {
122+ machine_type = " e2-medium"
123+ flex_start = true
124+ max_run_duration = " 604800s"
125+
126+ reservation_affinity {
127+ consume_reservation_type = " NO_RESERVATION"
128+ }
129+ }
130+ }
131+ # [END gke_standard_zonal_reservation_flex]
You can’t perform that action at this time.
0 commit comments