solr-operator icon indicating copy to clipboard operation
solr-operator copied to clipboard

zookeeper doesn't honour global.clusterDomain value and keeps looking for cluster.local

Open parekhcoder opened this issue 3 years ago • 1 comments

getting error while installing solr, Couldn't bind to solrcloud-zookeeper-headless.namespace.svc.cluster.local:2888.

Though provided global.clusterDomain setting it is still looking at cluster.local. (addressability.kubeDomain also doesn't work)

There doesn't have any param for clusterDomain in "zk" https://github.com/apache/solr-operator/blob/v0.6.0/helm/solr/README.md?plain=1#L152; though zookeeper does have param https://github.com/pravega/zookeeper-operator/blob/master/charts/zookeeper/README.md?plain=1#L63

parekhcoder avatar Sep 15 '22 12:09 parekhcoder

Could you run kubectl describe zookeepercluster? In the code, the Solr Operator should be doing the right thing here: https://github.com/apache/solr-operator/blob/v0.6.0/controllers/util/zk_util.go#L119

HoustonPutman avatar Sep 16 '22 16:09 HoustonPutman

In my case

solrAddressability: kubeDomain: my-customdomain

works fine. Without any issue.

necipakca avatar Feb 11 '23 13:02 necipakca

Thanks for your input here @necipakca !

HoustonPutman avatar Feb 13 '23 17:02 HoustonPutman