<p>Trying to run application in kubernetes which need to access Sybase DB from with in the Pod . I have the below egress Network policy which should allow all .The sybase db connection is getting created but its getting closed soon(Connection Closed Error) . Sybase docs say</p>
<p><em>Firewall software may filter network packets according to network port. Also, it is common to disallow UDP packets from crossing the firewall</em>.</p>
<p>My question is do i need to explicitly specify something for UDP or should nt the egress  Allow all ( {}) take care of this ?</p>
<blockquote>
<p>NetWork Policy</p>
</blockquote>
<pre><code>apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: spring-app-network-policy
spec:
  podSelector:
    matchLabels:
      role: spring-app
  ingress:
    - {}
  egress:
    - {}
  policyTypes:
  - Ingress
  - Egress
</code></pre>

Ajith Kannan
<p>The issue was using spring cloud which internally deployed new pods with different names and the policy was not applied. It's working by adding network policy for the newly deployed applications.</p>
