You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a NetworkPolicy, you can target a range of ports instead of a single port.
229
229
@@ -251,17 +251,25 @@ spec:
251
251
endPort: 32768
252
252
```
253
253
254
-
The above rule allows any Pod with label `db` on the namespace `default` to communicate with any IP within the range `10.0.0.0/24` over TCP, provided that the target port is between the range 32000 and 32768.
254
+
The above rule allows any Pod with label `db` on the namespace `default` to communicate
255
+
with any IP within the range `10.0.0.0/24` over TCP, provided that the target
256
+
port is between the range 32000 and 32768.
255
257
256
258
The following restrictions apply when using this field:
257
-
* As an alpha feature, this is disabled by default. To enable the `endPort` field at a cluster level, you (or your cluster administrator) need to enable the `NetworkPolicyEndPort` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the API server with `--feature-gates=NetworkPolicyEndPort=true,…`.
259
+
* As a beta feature, this is enabled by default. To disable the `endPort` field
260
+
at a cluster level, you (or your cluster administrator) need to disable the
0 commit comments