<p>I am running solr inside minikube for a POC. I am trying to figure out how to access the solr inside the minikube. As per my knowledge I cant access solr using my host IP, it is only accessible using the minikube IP - 192.168.99.100:8983/solr. My objective is to hit the solr server when accessing it from a remote box.</p>

<p>One of my team mates suggested that I can maybe use something that will forward incoming request to a local IP.  </p>

<p>Any suggestions??</p>

<p>Thanks</p>

<p>First you need to get URL of your Service for solr.</p>

<pre><code>$ minikube service &lt;service-name&gt; --url
http://192.168.99.100:30000
</code></pre>

<p>Here, <code>30000</code> is your solr Service NodePort.</p>

<p>Now you need to create SSH tunnel. </p>

<p>For that try this</p>

<pre><code>$ ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip) -L \*:30000:0.0.0.0:30000
</code></pre>

<blockquote>
  <p>Note: To keep SSH tunneling in Background, add <code>&amp;</code> at the end of <code>(ssh -i .....) &amp;</code></p>
</blockquote>

<p>Now you can access this solr Service using your Host IP address</p>
