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: "describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints.",
498
498
Elem: &schema.Resource{
499
499
Schema: map[string]*schema.Schema{
500
+
"match_label_keys": {
501
+
Type: schema.TypeSet,
502
+
Description: "is a set of pod label keys to select the pods over which spreading will be calculated.",
503
+
Optional: true,
504
+
ForceNew: !isUpdatable,
505
+
Elem: &schema.Schema{
506
+
Type: schema.TypeString,
507
+
},
508
+
},
500
509
"max_skew": {
501
510
Type: schema.TypeInt,
502
511
Description: "describes the degree to which pods may be unevenly distributed.",
503
512
Optional: true,
504
513
Default: 1,
505
514
ValidateFunc: validation.IntAtLeast(1),
506
515
},
516
+
"min_domains": {
517
+
Type: schema.TypeInt,
518
+
Description: "indicates a minimum number of eligible domains.",
519
+
Optional: true,
520
+
ForceNew: !isUpdatable,
521
+
ValidateFunc: validation.IntAtLeast(1),
522
+
},
523
+
"node_affinity_policy": {
524
+
Type: schema.TypeString,
525
+
Description: "indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew.",
Copy file name to clipboardExpand all lines: website/docs/r/pod.html.markdown
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -863,7 +863,11 @@ The `items` block supports the following:
863
863
864
864
#### Arguments
865
865
866
+
*`match_label_keys` - (Optional) Is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both `match_label_keys` and `label_selector`. `match_label_keys` cannot be set when `label_selector` isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against `label_selector`.
866
867
*`max_skew` - (Optional) Describes the degree to which pods may be unevenly distributed. Default value is `1`.
868
+
*`min_domains` - (Optional) Indicates a minimum number of eligible domains. Must be number greater than `0`. When set, `when_unsatisfiable` must be set to `DoNotSchedule`.
869
+
*`node_affinity_policy` - (Optional) Indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Valid values are `Honor` and `Ignore`. When unset, behavior defaults to `Honor`.
870
+
*`node_taints_policy` - (Optional) Indicates how we will treat node taints when calculating pod topology spread skew. Valid values are `Honor` and `Ignore`. When unset, behavior defaults to `Ignore`.
867
871
*`topology_key` - (Optional) The key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology.
868
872
*`when_unsatisfiable` - (Optional) Indicates how to deal with a pod if it doesn't satisfy the spread constraint. Valid values are `DoNotSchedule` and `ScheduleAnyway`. Default value is `DoNotSchedule`.
869
873
*`label_selector` - (Optional) A label query over a set of resources, in this case pods.
Copy file name to clipboardExpand all lines: website/docs/r/pod_v1.html.markdown
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -852,7 +852,11 @@ The `items` block supports the following:
852
852
853
853
#### Arguments
854
854
855
+
*`match_label_keys` - (Optional) Is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both `match_label_keys` and `label_selector`. `match_label_keys` cannot be set when `label_selector` isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against `label_selector`.
855
856
*`max_skew` - (Optional) Describes the degree to which pods may be unevenly distributed. Default value is `1`.
857
+
*`min_domains` - (Optional) Indicates a minimum number of eligible domains. Must be number greater than `0`. When set, `when_unsatisfiable` must be set to `DoNotSchedule`.
858
+
*`node_affinity_policy` - (Optional) Indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Valid values are `Honor` and `Ignore`. When unset, behavior defaults to `Honor`.
859
+
*`node_taints_policy` - (Optional) Indicates how we will treat node taints when calculating pod topology spread skew. Valid values are `Honor` and `Ignore`. When unset, behavior defaults to `Ignore`.
856
860
*`topology_key` - (Optional) The key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology.
857
861
*`when_unsatisfiable` - (Optional) Indicates how to deal with a pod if it doesn't satisfy the spread constraint. Valid values are `DoNotSchedule` and `ScheduleAnyway`. Default value is `DoNotSchedule`.
858
862
*`label_selector` - (Optional) A label query over a set of resources, in this case pods.
0 commit comments