<p>I Have 1 master and 2 work kubernetes cluster,
i  am running application on that cluster but pods
running on the worker node is not able to connect to the internet
and i am also enable egress network policy for all pods.
this is my network policy</p>
<pre><code>kind: NetworkPolicy
metadata:
  name: allow-all-egress
spec:
  podSelector: {}
  egress: 
  - {}
  policyTypes:
  - Egress```
</code></pre>

karthik
<p>Try this example</p>
<pre><code>kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: allow-all-traffic
  namespace: default
spec:
  podSelector: {}
  ingress:
  - {}
</code></pre>
<p><a href="https://github.com/ahmetb/kubernetes-network-policy-recipes/blob/master/02a-allow-all-traffic-to-an-application.md" rel="nofollow noreferrer">https://github.com/ahmetb/kubernetes-network-policy-recipes/blob/master/02a-allow-all-traffic-to-an-application.md</a></p>
