-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver/daemonset: Align node selection behavior with Kubernetes sched…
…uler (#1958) * driver/daemonset: Perform AND with nodeSelector and nodeAffinity Align node filter behavior with Kuberntes scheduler to avoid errors when both of nodeSelctor and nodeAffinity are set to PodSpec. > If you specify both nodeSelector and nodeAffinity, both must be satisfied for the Pod to be scheduled onto a node. > > https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ Issue: #1957 Signed-off-by: nonylene <[email protected]> * driver/daemonset: Fix evaluation of multiple matchExpressions Align nodeAffinity matching behavior with Kubernetes schduler. > If you specify multiple expressions in a single matchExpressions field associated with a term in nodeSelectorTerms, then the Pod can be scheduled onto a node only if all the expressions are satisfied (expressions are ANDed). > > https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ Close #1957 Signed-off-by: nonylene <[email protected]> --------- Signed-off-by: nonylene <[email protected]> Co-authored-by: Peter Grant <[email protected]>
- Loading branch information
1 parent
18bb79d
commit 7700f31
Showing
2 changed files
with
115 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters