apache / solr-operator

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

Ability to set custom hostname for SolrCloud #667

Open mcarroll1 opened 6 months ago

mcarroll1 commented 6 months ago

Hello,

Much like the addressability.external.domainName value in the SolrCloud resource, it would be helpful to have something like addressability.external.hostName to specify a particular hostname for external accessibility. It appears now that the hostname is always set to <namespace>-<solrcloud-name>-solrcloud (https://github.com/apache/solr-operator/blob/main/api/v1beta1/solrcloud_types.go#L1339) which is a bit redundant for my team's implementation of one SolrCloud per namespace (we end up with something like solralpha-solralpha-solrcloud.domain.com).

Thanks for your consideration!

janhoy commented 5 months ago

Had the same need. Perhaps a configurable service-name template would be cool, where the default could be serviceNameTemplate: %n-%r-solrcloud given that %n=namespace, %r=releaseName.

HoustonPutman commented 4 months ago

Yeah, I agree that could be cool!