<p>I'm new to Kubernetes and Rancher. I have builde node docker image with below commands:</p>

<pre><code>FROM node:10
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app
RUN npm cache clean
RUN npm install
COPY . /usr/src/app
EXPOSE 3000
CMD ["npm","start"]
</code></pre>

<p>I have put docker image to my repo on docker hub.
From Docker hub I'm pulling same image on Rancher/Kubernetes its showing as it as in Active state, as shown below:</p>

<blockquote>
  <p>kubectl get svc -n nodejs</p>
</blockquote>

<pre><code>NAME                      TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)           AGE

node-front-end            ClusterIP   10.43.14.96    &lt;none&gt;        49160/TCP         21m
node-front-end-nodeport   NodePort    10.43.171.52   &lt;none&gt;        49160:31366/TCP   21m
</code></pre>

<p>But when I'm trying with above IP and Port it's giving message : "This site can’t be reached"</p>

<p>So i'm not able to understand what I'm doing wrong here. </p>

<p>Please guide.</p>

Vikas Banage
<blockquote>
  <p>But when I'm trying with above IP and Port it's giving message : "This site can’t be reached"</p>
</blockquote>

<p>Correct, those <code>ClusterIP</code>s are "virtual," in that they exist only inside the cluster. The address you will want to use is <em>any</em> of the <code>Node</code>'s IP addresses, and then the port <code>:31366</code> listed there in the <code>Service</code> of type <code>NodePort</code>.</p>

<p>Just in case you don't already know them, one can usually find the IP address of the Nodes with <code>kubectl get -o wide nodes</code>.</p>
