Skip to content

Commit ecbd5a5

Browse files
authored
Merge pull request #61615 from bergerhoffer/OSDOCS-6552
OSDOCS-6552: GA for matchLabelKeys for pod topology spread constraints
2 parents 99a5940 + e12d47b commit ecbd5a5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/nodes-cluster-enabling-features-about.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ The following Technology Preview features are enabled by this feature set:
2626
** Swap memory on nodes. Enables swap memory use for {product-title} workloads on a per-node basis. (`NodeSwap`)
2727
** OpenStack Machine API Provider. This gate has no effect and is planned to be removed from this feature set in a future release. (`MachineAPIProviderOpenStack`)
2828
** Insights Operator. Enables the Insights Operator, which gathers {product-title} configuration data and sends it to Red Hat. (`InsightsConfigAPI`)
29-
** Pod topology spread constraints. Enables the `matchLabelKeys` parameter for pod topology constraints. The parameter is list of pod label keys to select the pods over which spreading will be calculated. (`MatchLabelKeysInPodTopologySpread`)
3029
** Retroactive Default Storage Class. Enables {product-title} to retroactively assign the default storage class to PVCs if there was no default storage class when the PVC was created.(`RetroactiveDefaultStorageClass`)
3130
** Pod disruption budget (PDB) unhealthy pod eviction policy. Enables support for specifying how unhealthy pods are considered for eviction when using PDBs. (`PDBUnhealthyPodEvictionPolicy`)
3231
** Dynamic Resource Allocation API. Enables a new API for requesting and sharing resources between pods and containers. This is an internal feature that most users do not need to interact with. (`DynamicResourceAllocation`)

modules/nodes-scheduler-pod-topology-spread-constraints-configuring.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ spec:
3535
labelSelector: <4>
3636
matchLabels:
3737
foo: bar <5>
38+
matchLabelKeys:
39+
- my-pod-label <6>
3840
containers:
3941
- image: "docker.io/ocpqe/hello-pod"
4042
name: hello-pod
@@ -44,6 +46,7 @@ spec:
4446
<3> How to handle a pod if it does not satisfy the spread constraint. The default is `DoNotSchedule`, which tells the scheduler not to schedule the pod. Set to `ScheduleAnyway` to still schedule the pod, but the scheduler prioritizes honoring the skew to not make the cluster more imbalanced.
4547
<4> Pods that match this label selector are counted and recognized as a group when spreading to satisfy the constraint. Be sure to specify a label selector, otherwise no pods can be matched.
4648
<5> Be sure that this `Pod` spec also sets its labels to match this label selector if you want it to be counted properly in the future.
49+
<6> A list of pod label keys to select which pods to calculate spreading over.
4750

4851
. Create the pod:
4952
+

nodes/clusters/nodes-cluster-enabling-features.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ For more information about the features activated by the `TechPreviewNoUpgrade`
1818

1919
** xref:../../nodes/nodes/nodes-nodes-managing.adoc#nodes-nodes-swap-memory_nodes-nodes-managing[Swap memory on nodes]
2020

21-
** xref:../../support/remote_health_monitoring/using-insights-operator.adoc#using-insights-operator[Using Insights Operator]
22-
2321
** xref:../../machine_management/capi-machine-management.adoc#capi-machine-management[Managing machines with the Cluster API]
2422

25-
** xref:../../nodes/scheduling/nodes-scheduler-pod-topology-spread-constraints.adoc#nodes-scheduler-pod-topology-spread-constraints[Controlling pod placement by using pod topology spread constraints]
23+
** xref:../../support/remote_health_monitoring/using-insights-operator.adoc#using-insights-operator[Using Insights Operator]
2624

2725
** xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]
2826

0 commit comments

Comments
 (0)