You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Paweł Ruciński <pa...@gmail.com> on 2018/07/16 13:07:17 UTC

Re: Solr cloud in kubernetes

Hi,
I am trying to achieve same, to host Solr on k8s.
For now, I successfully created ZK as a statefulset (3 instances) with a
headless service. Apart of that created deployment objects for storing Solr
pods (again 3 instances). For each solr pod I have manually created
persistent volume.

Now I am wondering if there is a way to move into the statefulset for a solr
instances. I see a constraint, when solr pod dies, it loose core.properties
file, as it is inside solr home directory. Solr data directory is a mounted
persistent volume.

My question is, can I made Solr to create core.properties files in a
different place that solr home directory (ie. solr data)?

PS.
Your discussion was very informative for me. As I just started, both with
Solr and k8s.


Best regards,
Paweł Ruciński



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Solr cloud in kubernetes

Posted by jonasdkhansen <jo...@gmail.com>.
Hi, i also got this running
https://github.com/freedev/solrcloud-zookeeper-kubernetes  

My problem is also that instance 2 and 3 will not start. If i exec into
them, and run bin/solr start -cloud, then i can start them on another port
than 32080, but thats not what we want.

Is anyone having a solution to this yet ? 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Solr cloud in kubernetes

Posted by ssivashunm <ss...@llbean.com>.
https://github.com/freedev/solrcloud-zookeeper-kubernetes 
 provides more detail about persistent disck usage for solr data and home. 

Th issue I face is, since all three statefulset will use the same solr port
(as they are replicas) they are not communicating with one another. 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html