Skip to content

Commit

Permalink
fixes kubernetes-retired#1454: add document for intersectWithClusterS…
Browse files Browse the repository at this point in the history
…elector
  • Loading branch information
xunpan committed Sep 13, 2021
1 parent 5b1f868 commit 1869c96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/userguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,15 @@ desired by user preferences), which apparently is the only mechanism to check if
this cluster has capacity now. The `spec.rebalance` should not be used if this
behaviour is unacceptable.

By default, RSP placement scheduling result overwrites the clusters list in the
`spec.placement.clusters` of the target resource. The federated resources also use
`spec.placement.clusterSelector` to select target clusters for resource propagation.
When the RSP placement scheduling result is determined, the federated resource may
need to apply the cluster selector at the same time to get the result clusters.
If `intersectWithClusterSelector` is set to true, the placement of target kind will
be determined using the instersection of RSP placement scheduling result and the
`spec.placement.clusterSelector` specified on the target kind.

The RSP can be considered as more user friendly mechanism to distribute the
replicas, where the inputs needed from the user at federated control plane are
reduced. The user only needs to create the RSP resource and associated federated
Expand Down

0 comments on commit 1869c96

Please sign in to comment.