Skip to content

Commit 5b8e630

Browse files
authored
Merge pull request #37672 from marosset/windows-host-networking-alpha
WindowsHostNetwork alpha updates
2 parents 354061c + b95fb30 commit 5b8e630

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

content/en/docs/concepts/windows/intro.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ work between Windows and Linux:
238238
The following list documents differences between how Pod specifications work between Windows and Linux:
239239

240240
* `hostIPC` and `hostpid` - host namespace sharing is not possible on Windows
241-
* `hostNetwork` - There is no Windows OS support to share the host network
241+
* `hostNetwork` - [see below](/docs/concepts/windows/intro#compatibility-v1-pod-spec-containers-hostnetwork)
242242
* `dnsPolicy` - setting the Pod `dnsPolicy` to `ClusterFirstWithHostNet` is
243243
not supported on Windows because host networking is not provided. Pods always
244244
run with a container network.
245-
* `podSecurityContext` (see below)
245+
* `podSecurityContext` [see below](/docs/concepts/windows/intro#compatibility-v1-pod-spec-containers-securitycontext)
246246
* `shareProcessNamespace` - this is a beta feature, and depends on Linux namespaces
247247
which are not implemented on Windows. Windows cannot share process namespaces or
248248
the container's root filesystem. Only the network can be shared.
@@ -261,6 +261,17 @@ The following list documents differences between how Pod specifications work bet
261261
* You cannot enable `mountPropagation` for volume mounts as this is not
262262
supported on Windows.
263263

264+
#### Field compatibility for hostNetwork {#compatibility-v1-pod-spec-containers-hostnetwork}
265+
266+
{{< feature-state for_k8s_version="v1.26" state="alpha" >}}
267+
268+
The kubelet can now request that pods running on Windows nodes use the host's network namespace instead
269+
of creating a new pod network namespace. To enable this functionality pass `--feature-gates=WindowsHostNetwork=true` to the kubelet.
270+
271+
{{< note >}}
272+
This functionality requires a container runtime that supports this functionality.
273+
{{< /note >}}
274+
264275
#### Field compatibility for Pod security context {#compatibility-v1-pod-spec-containers-securitycontext}
265276

266277
None of the Pod [`securityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) fields work on Windows.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ For a reference to old feature gates that are removed, please refer to
197197
| `WinDSR` | `false` | Alpha | 1.14 | |
198198
| `WinOverlay` | `false` | Alpha | 1.14 | 1.19 |
199199
| `WinOverlay` | `true` | Beta | 1.20 | |
200+
| `WindowsHostNetwork` | `false` | Alpha | 1.26| |
200201
{{< /table >}}
201202

202203
### Feature gates for graduated or deprecated features

0 commit comments

Comments
 (0)