<p>every doc/tutorial says only about how to apply networkpolicy, but none of them tells actually how to validate if your policy was applied, how to do that? any useful tool for networkpolicy mgmt?</p>

animekun
<p>Thinking of NetworkPolicy resources as Firewall rules in your OS , how can you validate if any firewall rule applied to your applications running in your OS? Only by analyzing Firewall rules and it requires firewall knowledge. 
So in Kubernetes cluster you can also analyze <code>NetworkPolicy</code> by describing them.</p>

<pre><code>kubectl get networkpolicy
kubectl describe networkpolicy &lt;networkpolicy-name&gt;
</code></pre>

<p>You need also understand components of NetworkPolicy such as <code>podSelector</code>, <code>policyTypes</code> such as Ingress, Engress and so on. </p>

<p>For example if your NetworkPolicy <code>podSelector</code> is <code>role=db</code>, you can search your pods matching this label via </p>

<pre><code>kubectl get pods -l 'role=db'
</code></pre>

<p>For more information about NetworkPolicy you can check <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/" rel="nofollow noreferrer">Official Documentation</a></p>

<p>Also for Label and Selectors check this <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/" rel="nofollow noreferrer">Documentation</a></p>
