<p>I created a pod and try to connect from that pod to localhost. How is possible with the help of container arguments connect to localhost ?</p>

O.Man
<p>You can always execute:</p>
<pre><code>kubectl port-forward &lt;pod-name&gt; port:port
</code></pre>
<p>Check more here: <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/</a>.</p>
<p>If you don't want to use port forwarding, then you need to expose your POD with a service. Read more here: <a href="https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/</a></p>
