<p>Currently, I am trying to deploy my microservice end point Docker image on a Kubernetes cluster by creating the Helm chart. For this, I created the chart and changed the parameters in values.yaml and deployment.yaml for port change. And also I want to access from my Angular front end. So I added service type= NodePort. And when I described the service, it gave me the port <code>30983</code> to access.</p>

<p>And I accessed like <a href="http://node-ip:30983/endpoint" rel="noreferrer">http://node-ip:30983/endpoint</a></p>

<p>But I am only getting the site can't be reached the message. Let me add the details of what I did here:</p>

<p>My values.yaml file containing the following to mention the service type:</p>

<p><a href="https://i.stack.imgur.com/f0KZK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/f0KZK.png" alt="enter image description here"></a></p>

<p>And my templates/service.yaml file containing like the following:</p>

<p><a href="https://i.stack.imgur.com/eF0zY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eF0zY.png" alt="enter image description here"></a></p>

<p>And my templates/deployment.yaml file containing the following:</p>

<p><a href="https://i.stack.imgur.com/63VTS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/63VTS.png" alt="enter image description here"></a></p>

<p>And I tried to access like the following:</p>

<p><a href="http://192.168.16.177:30983/" rel="noreferrer">http://192.168.16.177:30983/</a></p>

<p>And only getting site can't be reached.</p>

<p>NB: when I tried to describe the service, then I am getting the following:</p>

<p><a href="https://i.stack.imgur.com/Gdo5c.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gdo5c.png" alt="enter image description here"></a></p>

<p>The output of <strong>kubectl get pod --show-labels</strong> like the following image screenshot</p>

<p><a href="https://i.stack.imgur.com/C0ziT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/C0ziT.png" alt="enter image description here"></a></p>

<p><strong>Updated</strong></p>

<p>And when we using <code>kubectl describe pod</code> command, getting like the following:</p>

<p><a href="https://i.stack.imgur.com/O6qx2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/O6qx2.png" alt="enter image description here"></a></p>

<p><strong>Updated Error</strong></p>

<pre><code>Readiness probe failed: HTTP probe failed with statuscode: 404
Liveness probe failed: HTTP probe failed with statuscode: 404
</code></pre>

<p>How can I access my endpoint from deployment?</p>

<p>Try this for healthcheck probes:</p>

<pre><code>livenessProbe:
  tcpSocket:
    port: 8085
readinessProbe:
  tcpSocket:
    port: 8085
</code></pre>
