<p>I'm trying to apply egress port range for my k8s network policy like this:</p>
<pre><code> egress:
  - to:
    - ipBlock:
        cidr: 10.0.0.0/24
    ports:
    - protocol: TCP
      port: 32000
      endPort: 32768
</code></pre>
<p>Starting fine but when I describe that, I only see that port <code>32000</code> is allowed.
Do I miss something? Or have I made some mistake?</p>
<p>Thanks.</p>

<p>It seems you took this example from  <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/#targeting-a-range-of-ports" rel="nofollow noreferrer">Targeting a range of Ports</a>. Here are 2 questions:</p>
<ol>
<li><p>I see <code>endPort</code> works only with <code>NetworkPolicyEndPort</code> enabled feature. Despite the fact it is states, this feature enabled by default, can you please
check if it turned for you?
<a href="https://i.stack.imgur.com/R0RwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R0RwO.png" alt="enter image description here" /></a></p>
</li>
<li><p>Whats your CNI plugin and does it support <code>endPort</code> in NetworkPolicy spec?</p>
</li>
</ol>
<p><a href="https://i.stack.imgur.com/bB8ou.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bB8ou.png" alt="enter image description here" /></a></p>
