<p>I have a application running with kubernetes orchestrator. I want to implement calico network policy <strong>on the basis of CIDR</strong> so that I can control the pod's traffic (incoming and outgoing). I am looking for prerequisite installation (any plugin) and what changes (calico yaml file or manifest file) are required to achieve this.</p>
<p>Some explanation about steps that need to be implemented will be appreciated.</p>

solveit
<p>well, prerequisites depend on whether you want to use plain <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/" rel="nofollow noreferrer">Kubernetes NetworkPolicies</a> or <a href="https://docs.projectcalico.org/about/about-network-policy" rel="nofollow noreferrer">Calico NetworkPolicies</a>.</p>
<p>You will need to have a CNI Plugin deployed which implements the NetworkPolicy Specification either way. Calicao supports plain NetPols as well as its own NetPol implementation.</p>
<ol>
<li>check your deployed CNI plugin</li>
<li>check if your deployed CNI plugin implements network policies</li>
<li>create NetworkPolicy kubernetes ressources and deploy them</li>
</ol>
