<p>I am trying to test an outbound connection from within a Amazon Linux 2 container that is running in Kubernetes. I have a service set up and I am able to telnet to that service through a VPN. But I want to test a connection coming out from that container. Is there a way that this can be done.
I have tried the ping, etc. but the commands all say &quot;command not found&quot;</p>
<p>Is there any command I can run that can test an outbound connection?</p>

Gene Smith
<p>Please provide more context. What exact image are you running? When debugging connectivity of kubernetes pods and services, you can exec into the pod with</p>
<pre><code>kubectl exec -it &lt;pod_name&gt; -n &lt;namespace&gt; -- &lt;bash|ash|sh&gt; 
</code></pre>
<p>Once you gain access to the pod and can emulate a shell inside, you can update + upgrade the runtime with the package manager (apt, yum, depends on the distro).</p>
<p>After upgrading, you can install <strong>curl</strong> and try to curl an external site.</p>
