<p>I created 2 simple spring boot application and deployed in Google Kubernetes using a docker container by referring this link :
<a href="https://codelabs.developers.google.com/codelabs/cloud-springboot-kubernetes/index.html?index=..%2F..%2Findex#1" rel="nofollow noreferrer">Deploy spring boot in Kubernetes</a></p>

<p>Now when I run <code>kubectl get services</code> i can see 2 services(Spring boot applications) listed! </p>

<p>I understand that using expose I can reserve a static IP for the services! But What I need is ** I need to access two services using Single IP** (Similar to routing) so that end-user need only be known about one IP address for the multiservices! How could I achieve that? I am very new to this! Please help.. </p>

<p>The easiest way to access your services publicly, using the same IP address, would be to use the <code>ingress-controller</code> and <code>Ingress</code> resource. This will allow you to use dns based hostnames and/or path matching to access each service individually.</p>

<p>I have an easy to use starter repository that I recommend you use to get started. Simply run the following commands:</p>

<p>Install the ingress-controller:</p>

<pre><code>$ git clone https://github.com/mateothegreat/k8-byexamples-ingress-controller
$ cd k8-byexamples-ingress-controller
$ git submodule update --init

$ make install LOADBALANCER_IP=&lt;your static ip here&gt;
</code></pre>

<p>Create your <code>Ingress</code> resource:</p>

<pre><code>$ make issue HOST=&lt;your dns hostname&gt; SERVICE_NAME=&lt;your service&gt; SERVICE_PORT=&lt;the service port&gt;
</code></pre>

<p>You can repeat this last step as many times as you need. For additional information you can go to <a href="https://github.com/mateothegreat/k8-byexamples-ingress-controller" rel="nofollow noreferrer">https://github.com/mateothegreat/k8-byexamples-ingress-controller</a>.</p>
