apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
243 stars 111 forks source link

Allow sessionAffinity for the SolrCloud CommonService #535

Open HoustonPutman opened 1 year ago

HoustonPutman commented 1 year ago

Kubernetes ClusterIP Services allow for sessionAffinity, and customization of the max session stickiness timeout.

More information can be found here: https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity

All we would need is these options to be given under SolrCloud.Spec.customSolrKubeOptions.commonServiceOptions, and then passed to the service. This doesn't make sense for the headless service or node services.

trevorpburke commented 1 year ago

Took a pass at this in https://github.com/apache/solr-operator/pull/571

Just started learning Go this week, but imagine I'm missing a step or two here. LMK!