Skip to content

Commit

Permalink
Merge pull request #28 from ykulazhenkov/controller-affinity
Browse files Browse the repository at this point in the history
Use "preferred" podAntiAffinity instead of "required" for controller pod
  • Loading branch information
adrianchiris authored Aug 8, 2023
2 parents 9bd60b3 + 3149c68 commit a011b7b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions deploy/nv-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,16 @@ spec:
serviceAccountName: nv-ipam-controller
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: name
operator: In
values:
- nv-ipam-controller
topologyKey: "kubernetes.io/hostname"
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: name
operator: In
values:
- nv-ipam-controller
topologyKey: "kubernetes.io/hostname"
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
Expand Down

0 comments on commit a011b7b

Please sign in to comment.