<p>I am using AWS EKS (managed Kubernetes service) and Fargate (managed nodes) to deploy a pod running a nodejs React service on port 5000. The pod switches from &quot;Running&quot; state to &quot;Terminating&quot; state continuously immediately after deployment to Fargate. Eventually, it settles on &quot;Running&quot;. Other pods are running fine on Fargate.</p>
<p>I am unable to view the logs due to Kubernetes reporting <code>net/http: TLS handshake timeout</code> .</p>
<p>The service is fronted by AWS Application Load Balancer (ALB). In the target group, I can see continuous registration and deregistration of the pod/node IP.</p>
<p>How can I troubleshoot this further?</p>

Confounder
<p>Some ways to troubleshoot:</p>
<ul>
<li>With kubectl, if your pods are run with a K8s deployment:
<pre class="lang-sh prettyprint-override"><code>kubectl describe deployment &lt;deployment-name&gt; 👈 check for events
</code></pre>
</li>
<li>With kubectl, before the pod goes into Terminating
<pre class="lang-sh prettyprint-override"><code>kubectl logs &lt;pod-id&gt;
kubectl describe pod &lt;pod-id&gt; 👈 check for events
</code></pre>
</li>
<li>Check EKS control plane logs in the S3 bucket where you are sending them to.</li>
</ul>
<p>The idea is here is to troubleshoot with the Kubernetes tools.</p>
