<p>How to check if a pod has access to url something like this.</p>
<p>http://hostname:8080.</p>
<p>It says connection failed, I went through lot of documentation, unable to figure out how to check the connection.</p>
<p>Thanks,
Vijay.</p>

Vijay
<p>You should set up egress.</p>
<p>For example , following yaml will allow all egress traffic</p>
<pre><code>---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-all-egress
spec:
  podSelector: {}
  egress:
  - {}
  policyTypes:
  - Egress
</code></pre>
<p>Reference: <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/network-policies/</a></p>
