PlacementPolicy interface
PlacementPolicy contains the rules to select target member clusters to place the selected resources. Note that only clusters that are both joined and satisfying the rules will be selected. You can only specify at most one of the two fields: ClusterNames and Affinity. If none is specified, all the joined clusters are selected.
Properties
| affinity | Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is "PickAll" or "PickN". |
| cluster |
ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed" |
| placement |
Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. |
| tolerations | If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature. |
Property Details
affinity
Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is "PickAll" or "PickN".
affinity?: Affinity
Property Value
clusterNames
ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed"
clusterNames?: string[]
Property Value
string[]
placementType
Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll.
placementType?: string
Property Value
string
tolerations
If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature.
tolerations?: Toleration[]