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: "The specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.",
Description: "List of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the scaling rule will be discarded as invalid.",
212
+
},
213
+
"select_policy": {
214
+
Type: schema.TypeString,
215
+
Optional: true,
216
+
Description: "Used to specify which policy should be used. If not set, the default value Max is used.",
217
+
},
218
+
"stabilization_window_seconds": {
219
+
Type: schema.TypeInt,
220
+
Optional: true,
221
+
Description: "Number of seconds for which past recommendations should be considered while scaling up or scaling down. This value must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).",
222
+
},
223
+
},
224
+
}
225
+
}
226
+
227
+
funcscalingPolicySpecFields() *schema.Resource {
228
+
return&schema.Resource{
229
+
Schema: map[string]*schema.Schema{
230
+
"period_seconds": {
231
+
Type: schema.TypeInt,
232
+
Required: true,
233
+
Description: "Period specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).",
234
+
},
235
+
"type": {
236
+
Type: schema.TypeString,
237
+
Required: true,
238
+
Description: "Type is used to specify the scaling policy: Percent or Pods",
239
+
},
240
+
"value": {
241
+
Type: schema.TypeInt,
242
+
Required: true,
243
+
Description: "Value contains the amount of change which is permitted by the policy. It must be greater than zero.",
0 commit comments