cockroachdb / cockroach-operator

k8s operator for CRDB
Apache License 2.0
286 stars 95 forks source link

Assign existing/custom `schedulerName` to StatefulSet #986

Open DJAlPee opened 1 year ago

DJAlPee commented 1 year ago

Hey folks! I have installed CRDB using the operator. I'm using Piraeus as my CSI Provider. To place pods "as close as possible" to the PVC, I have to specify schedulerName: stork in the specs of the Pod/StatefulSet (see docs of piraeus). Because the StatefulSet is managed by the operator, I have to specify it somehow else... Is this possible with the operator (and the CrdbCluster CRD) or do I have create the StatefulSet "manually" without operator?

udnay commented 1 year ago

@prafull01 can you take a look at this? I don't think we expose this anywhere.

prafull01 commented 1 year ago

Right now we don't expose the schedule Name to allow our pods to be scheduled by custom schedular. We have to take it as an enhancement.