telekom-mms / cmcc-operator

Kubernetes Operator to bring up a CoreMedia Content Cloud installation
Apache License 2.0
9 stars 3 forks source link

initial solr replication fails -> no solr cores on follower instances #59

Closed hegessne closed 1 year ago

hegessne commented 2 years ago

when establishing solr follower instances the solr cores must be created because the replication otherwise will fail.

our workaround was to create them manually connecting each follower pod curl 'http://127.0.0.1:8983/solr/admin/cores?action=CREATE&name=studio&configSet=content&dataDir=data' curl 'http://127.0.0.1:8983/solr/admin/cores?action=CREATE&name=preview&configSet=cae&dataDir=data' curl 'http://127.0.0.1:8983/solr/admin/cores?action=CREATE&name=live&configSet=cae&dataDir=data'

stefanbethke commented 1 year ago

The intention in the operator was to use secrets to configure the Solr clients and their connection to the Solr servers (leader or followers); however, that has not been implemented fully. Instead, the Solr client configuration is injected directly as environment variables.