Add node affinity support for SG pods
Problem to solve
Some users might need more complex methods to schelude pods that what can't be done using node selectors (see #184 (closed))
Add to SGCluster in the scheduling property of the pods a node affinity property.
apiVersion: stackgres.io/v1beta1 kind: SGCluster spec: pods: scheduling: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/e2e-az-name operator: In values: - e2e-az1 - e2e-az2
This new node affinity should to all stackgres pods that contains a database node.