<ol>
<li>I created a small application, made a docker image of it, which runs
fine locally using docker run.</li>
<li>I created an EKS cluster on amazon.</li>
<li>I put the image up on ECR, wrote a yaml file for a deployment and loadbalancer service, and used kubectl apply -f to deploy to my cluster</li>
</ol>

<p>I can see my service:</p>

<pre><code>$ kubectl get svc
NAME         TYPE           CLUSTER-IP     EXTERNAL-IP                                                               PORT(S)        AGE
frd-front    LoadBalancer   10.100.199.8   a2c269b1619ee11ea90f20636eb75c46-1160809648.us-east-2.elb.amazonaws.com   80:32594/TCP   40m
kubernetes   ClusterIP      10.100.0.1     &lt;none&gt;                                                                    443/TCP        22h
</code></pre>

<p>But if I go to <a href="http://a2c269b1619ee11ea90f20636eb75c46-1160809648.us-east-2.elb.amazonaws.com" rel="nofollow noreferrer">http://a2c269b1619ee11ea90f20636eb75c46-1160809648.us-east-2.elb.amazonaws.com</a> there is no repsponse</p>

<ul>
<li>How can I start troubleshooting this?</li>
<li>Do you have any ideas right off the bat?</li>
</ul>

<p>Thanks  =)</p>

<p>The issue can be one of the two  reasons:</p>

<ol>
<li><p><strong>Docker image</strong>: the image may not be exposing the output as expected on the mentioned port.</p></li>
<li><p><strong>K8s Service</strong>: the service YAML may be configured with wrong target port or service port </p></li>
</ol>

<p>if you find that there is no issue in both the reasons. </p>

<p>Try to use port-forward on your pod  and check weather is  available.</p>

<p>Usage: 
check for pod</p>

<pre><code>kubectl port-forward pod-name-765d459796-258hz 8080:8080 // host-port:container-port
</code></pre>

<p>check for service </p>

<pre><code>kubectl port-forward svc/myservice 80:8080
</code></pre>

<ul>
<li><p>If both are working fine, then its issue with loadbalancer side or service outbound or network policies.</p></li>
<li><p>If not working even after port-forward then issue with docker image or deployment yaml.</p></li>
</ul>
