[Feature] Leverage Affinity rather than nodeSelector to target Control Plane Nodes #2644
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
The current manifests use a nodeSelector to target controlplane node. Specifically an empty label. Some distributions may leverage other labels, or populate the label value. This causes the pods to not get scheduled.
What you expected to happen:
The pods to be scheduled to control plane nodes.
How to reproduce it (as minimally and precisely as possible):
Label controlplane nodes with "node-role.kubernetes.io/control-plane=true" rather than empty.
Anything else we need to know?:
An easy fix, and what I've seen in other projects, as well as tested on my clusters is to remove the nodeSelector and instead add a nodeAffinity that matches the label rather than the label AND it's contents.
Environment:
uname -a
): N/aThe text was updated successfully, but these errors were encountered: