<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>You would need to expose the solr service using the <code>kubectl expose</code> command for external access.</p>

<p>There are four ways to expose a service for external access in k8s:</p>

<ol>
<li><code>LoadBalancer</code> service type which sets the ExternalIP automatically. This is used when there is an external non-k8s, cloud-provider's load-balancer like CGE, AWS or Azure, and this external load-balancer would provide the ExternalIP for the nginx ingress service per <a href="https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types</a>.</li>
<li><code>ExternalIPs</code> per <a href="https://kubernetes.io/docs/concepts/services-networking/service/#external-ips" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#external-ips</a>.</li>
<li><code>NodePort</code>: In this approach, the service can be hit from outside the cluster using <code>NodeIP:NodePort/url/of/the/service</code>.</li>
<li><code>Ingress</code>: <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/</a></li>
</ol>
