Skip to content

Commit

Permalink
OSDOCS-6552: GA for matchLabelKeys for pod topology spread constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
bergerhoffer committed Jun 23, 2023
1 parent 0a33a0e commit e12d47b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion modules/nodes-cluster-enabling-features-about.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ The following Technology Preview features are enabled by this feature set:
** Swap memory on nodes. Enables swap memory use for {product-title} workloads on a per-node basis. (`NodeSwap`)
** OpenStack Machine API Provider. This gate has no effect and is planned to be removed from this feature set in a future release. (`MachineAPIProviderOpenStack`)
** Insights Operator. Enables the Insights Operator, which gathers {product-title} configuration data and sends it to Red Hat. (`InsightsConfigAPI`)
** 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`)
** 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`)
** Pod disruption budget (PDB) unhealthy pod eviction policy. Enables support for specifying how unhealthy pods are considered for eviction when using PDBs. (`PDBUnhealthyPodEvictionPolicy`)
** 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`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
labelSelector: <4>
matchLabels:
foo: bar <5>
matchLabelKeys:
- my-pod-label <6>
containers:
- image: "docker.io/ocpqe/hello-pod"
name: hello-pod
Expand All @@ -44,6 +46,7 @@ spec:
<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.
<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.
<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.
<6> A list of pod label keys to select which pods to calculate spreading over.

. Create the pod:
+
Expand Down
4 changes: 1 addition & 3 deletions nodes/clusters/nodes-cluster-enabling-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ For more information about the features activated by the `TechPreviewNoUpgrade`

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

** xref:../../support/remote_health_monitoring/using-insights-operator.adoc#using-insights-operator[Using Insights Operator]

** xref:../../machine_management/capi-machine-management.adoc#capi-machine-management[Managing machines with the Cluster API]

** 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]
** xref:../../support/remote_health_monitoring/using-insights-operator.adoc#using-insights-operator[Using Insights Operator]

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

Expand Down

0 comments on commit e12d47b

Please sign in to comment.