No affinity yaml template is applied on StatefulSets
Hi everyone,
I've tried to create a new cockroach cluster starting with this example, adding and modifying the affinity attribute, but checking the StatefulSet object produced by the CrdbCluster template doesn't work.
CRD version: v2.10.0 Image used: cockroachdb/cockroach:v22.2.2 Hosting: kubernetes cluster (version 1.24.6) Cloud provider: Azure ( AKS cluster )
I attach the CrdbCluster template values.txt
Anyone could help me about this issue?
Thanks in advance
Found the problem, It's needed to enable on operator deployment here the explanation.
Just a question, why is it disabled by default ?
Thanks
Hey @TheHunter, I'm glad you were able to find the solution. As new features are added, we've made them opt-in only to prevent any accidental changes happening when performing an upgrade of the operator. There are a number of these however that could probably just be enabled by default at this point. Would you be interested in opening a PR?