You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `Standard rollout policy is the default policy for blue-green.`,
89
+
Elem: &schema.Resource{
90
+
Schema: map[string]*schema.Schema{
91
+
"batch_percentage": {
92
+
Type: schema.TypeFloat,
93
+
Optional: true,
94
+
Computed: true,
95
+
Description: `Percentage of the blue pool nodes to drain in a batch.`,
96
+
ValidateFunc: validation.FloatBetween(0.0, 1.0),
97
+
},
98
+
"batch_node_count": {
99
+
Type: schema.TypeInt,
100
+
Optional: true,
101
+
Computed: true,
102
+
Description: `Number of blue nodes to drain in a batch.`,
103
+
},
104
+
"batch_soak_duration": {
105
+
Type: schema.TypeString,
106
+
Optional: true,
107
+
Computed: true,
108
+
Description: `Soak time after each batch gets drained.`,
109
+
},
110
+
},
111
+
},
112
+
},
113
+
"node_pool_soak_duration": {
114
+
Type: schema.TypeString,
115
+
Optional: true,
116
+
Computed: true,
117
+
Description: `Time needed after draining entire blue pool. After this period, blue pool will be cleaned up.`,
118
+
},
119
+
},
120
+
},
121
+
Description: `Settings for BlueGreen node pool upgrade.`,
122
+
}
123
+
77
124
varschemaNodePool=map[string]*schema.Schema{
78
125
"autoscaling": {
79
126
Type: schema.TypeList,
@@ -146,17 +193,29 @@ var schemaNodePool = map[string]*schema.Schema{
146
193
Schema: map[string]*schema.Schema{
147
194
"max_surge": {
148
195
Type: schema.TypeInt,
149
-
Required: true,
196
+
Optional: true,
197
+
Computed: true,
150
198
ValidateFunc: validation.IntAtLeast(0),
151
199
Description: `The number of additional nodes that can be added to the node pool during an upgrade. Increasing max_surge raises the number of nodes that can be upgraded simultaneously. Can be set to 0 or greater.`,
152
200
},
153
201
154
202
"max_unavailable": {
155
203
Type: schema.TypeInt,
156
-
Required: true,
204
+
Optional: true,
205
+
Computed: true,
157
206
ValidateFunc: validation.IntAtLeast(0),
158
207
Description: `The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater.`,
*`max_surge` - (Required) The number of additional nodes that can be added to the node pool during
203
+
*`max_surge` - (Optional) The number of additional nodes that can be added to the node pool during
205
204
an upgrade. Increasing `max_surge` raises the number of nodes that can be upgraded simultaneously.
206
205
Can be set to 0 or greater.
207
206
208
-
*`max_unavailable` - (Required) The number of nodes that can be simultaneously unavailable during
207
+
*`max_unavailable` - (Optional) The number of nodes that can be simultaneously unavailable during
209
208
an upgrade. Increasing `max_unavailable` raises the number of nodes that can be upgraded in
210
209
parallel. Can be set to 0 or greater.
211
210
212
211
`max_surge` and `max_unavailable` must not be negative and at least one of them must be greater than zero.
213
212
213
+
*`strategy` - (Default `SURGE`) The upgrade stragey to be used for upgrading the nodes.
214
+
215
+
*`blue_green_settings` - (Optional) The settings to adjust [blue green upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies#blue-green-upgrade-strategy).
216
+
Structure is [documented below](#nested_blue_green_settings)
0 commit comments