Skip to content

Commit 77f868e

Browse files
committed
Add featuregate documentation and correct some doc suggestion
1 parent c0bb986 commit 77f868e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/en/docs/concepts/services-networking/network-policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The following restrictions apply when using this field:
257257
* As an alpha feature, this is disabled by default. To enable endPort field at a cluster level, you (or your cluster administrator) will need to enable the `NetworkPolicyEndPort` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the API server with `--feature-gates=NetworkPolicyEndPort=true,…`.
258258
* The `endPort` field must be equal than or greater to `port` field.
259259
* `endPort` can only be defined if `port` is also defined.
260-
* When using `endPort` field, the `port` field must be numeric.
260+
* Both ports must be numeric.
261261

262262
{{< note >}}
263263
Your cluster must be using a {{< glossary_tooltip text="CNI" term_id="cni" >}} plugin that

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ different Kubernetes components.
135135
| `LocalStorageCapacityIsolation` | `true` | Beta | 1.10 | |
136136
| `LocalStorageCapacityIsolationFSQuotaMonitoring` | `false` | Alpha | 1.15 | |
137137
| `MixedProtocolLBService` | `false` | Alpha | 1.20 | |
138+
| `NetworkPolicyEndPort` | `false` | Alpha | 1.21 | |
138139
| `NodeDisruptionExclusion` | `false` | Alpha | 1.16 | 1.18 |
139140
| `NodeDisruptionExclusion` | `true` | Beta | 1.19 | |
140141
| `NonPreemptingPriority` | `false` | Alpha | 1.15 | 1.18 |
@@ -657,6 +658,7 @@ Each feature gate is designed for enabling/disabling a specific feature:
657658
the volume mounter.
658659
- `MountPropagation`: Enable sharing volume mounted by one container to other containers or pods.
659660
For more details, please see [mount propagation](/docs/concepts/storage/volumes/#mount-propagation).
661+
- `NetworkPolicyEndPort`: Enable use of the field `endPort` in NetworkPolicy objects, allowing the selection of a port range instead of a single port.
660662
- `NodeDisruptionExclusion`: Enable use of the Node label `node.kubernetes.io/exclude-disruption`
661663
which prevents nodes from being evacuated during zone failures.
662664
- `NodeLease`: Enable the new Lease API to report node heartbeats, which could be used as a node health signal.

0 commit comments

Comments
 (0)