<p>I have setup a kubernetes cluster of elasticsearch in GCP.</p>

<pre><code>kubectl get svc
</code></pre>

<p>gives me</p>

<pre><code>NAME                                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)             AGE
ipgram-elasticsearch-elasticsearch-svc   ClusterIP   10.27.247.26   &lt;none&gt;        9200/TCP,9300/TCP   2h
</code></pre>

<p>How to set an external IP for this ?</p>

Harshdeep Kanhai
<p>You have to convert the service to be of type <code>LoadBalancer</code> which will assign an external IP to the LB or <code>NodePort</code> and then use the nodes IP.</p>
