<p>Using nodePort service with ingress, I success expose the service to the out world.</p>

<pre><code>--- service
NAMESPACE       NAME            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   
default         kubernetes      ClusterIP   10.96.0.1        &lt;none&gt;        443/TCP
default         postgres        ClusterIP   10.106.182.170   &lt;none&gt;        5432/TCP
default         user-api        NodePort    10.99.12.136     &lt;none&gt;        3000:32099/TCP
ingress-nginx   ingress-nginx   NodePort    10.110.104.0     &lt;none&gt;        80:31691/TCP,443:30593/TCP
--- ingress
NAME          HOSTS                ADDRESS        PORTS   AGE
app-ingress   example.com          10.110.104.0   80      3h27m
</code></pre>

<p>The rule of ingress show below.</p>

<pre><code>  Host                Path  Backends
  ----                ----  --------
  example.com
                      /user-api   user-api:3000 (172.16.117.201:3000)
</code></pre>

<p>If my user-api have a restful api <code>/v1/health</code> interface, how to access this api inside and outside server?</p>

ccd
<p>From the inside, <a href="http://user-api.default:3000/user-api" rel="nofollow noreferrer">http://user-api.default:3000/user-api</a>. From the outside, use any node external IP (see <code>kubectl get node -o wide</code> for a list of them).</p>
