In order to have defender pods scheduled to a specific set of hosts that match multiple criteria one needs to create a new label across those nodes (e.g. run on nodes with worker and infra roles but not master).
Describe the solution you'd like
Allow setting node affinity in the defender CR. This will provide more flexibility over scheduling the defender daemonset.
Describe alternatives you've considered
Manually labelling nodes, and continuing to maintain that label as nodes are added/removed which can easily be forgotten.
Is your feature request related to a problem?
In order to have defender pods scheduled to a specific set of hosts that match multiple criteria one needs to create a new label across those nodes (e.g. run on nodes with worker and infra roles but not master).
Describe the solution you'd like
Allow setting node affinity in the defender CR. This will provide more flexibility over scheduling the defender daemonset.
Describe alternatives you've considered
Manually labelling nodes, and continuing to maintain that label as nodes are added/removed which can easily be forgotten.
Additional context
https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity