Allow configuring node affinity from operator
Who is this for and what problem do they have today?
A user would like to set node affinity through the operator.
What are the success criteria?
Allowing node selector configuration via the operator. Possible relevant code is here: https://github.com/redpanda-data/redpanda/blob/2959f38e37aad6dc968159273b4b25c4e84ad22c/src/go/k8s/pkg/resources/statefulset.go#L531
Why is solving this problem impactful?
Description of the issue from the user:
the nodeSelector works but it'll cause a lot of pain to currently implement because only certain types of clusters have the specific label. vs the node affinity which would just prefers the node and is ignored for the label doesn't exist
Additional notes
JIRA Link: CORE-1160
Will go ahead and close as this is implemented here: https://docs.redpanda.com/current/reference/k-crd/#k8s-api-github-com-redpanda-data-redpanda-operator-operator-api-redpanda-v1alpha2-redpanda
Re-opening since base on further discussion it looks like this is not implemented in the statefulset for the Operator as you have suggested: https://docs.redpanda.com/current/reference/k-crd/#k8s-api-github-com-redpanda-data-redpanda-operator-operator-api-redpanda-v1alpha2-statefulset
This can be achieved with statefulset.podTemplate in recent versions (5.9.x and 2.3.x) of the helm chart and operator.