Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add labelselector
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ committed Aug 12, 2024
commit c8fcc9a27beac626448ad277a7c92dbd4d08dc0c
6 changes: 6 additions & 0 deletions controllers/constant/odlm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,12 @@ spec:
additionalPodAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: k8s.enterprisedb.io/cluster
operator: In
values:
- common-service-db
topologyKey: kubernetes.io/hostname
weight: 50
podAntiAffinityType: preferred
Expand Down