Add LCOWHostNetwork annotation for host network namespace sharing - #2851
Open
takuro-sato wants to merge 3 commits into
Open
Add LCOWHostNetwork annotation for host network namespace sharing#2851takuro-sato wants to merge 3 commits into
takuro-sato wants to merge 3 commits into
Conversation
Signed-off-by: Takuro Sato <takurosato@microsoft.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is based on the internal PR: https://msazure.visualstudio.com/ContainerPlatform/_git/Microsoft.hcsshim/pullrequest/15531697
Description
Add a new annotation io.microsoft.virtualmachine.lcow.hostnetwork that configures all containers in a pod to share the UVM's init network namespace instead of creating isolated per-container network namespaces.
Motivation
This is to support ESAN on LCOW.
ESAN sidecar need access to NETLINK_ISCSI sockets, which are network-namespace-scoped. In the default setup, containers run in isolated network namespaces where kernel netlink listeners are not available. This annotation allows the sidecar to communicate with the kernel's scsi_transport_iscsi module and establish iSCSI sessions.
Behavior with the new annotation
Annotation on pod config → all containers (sandbox + workloads) share the UVM's init netns
eth0 stays in init netns and is configured in-place (no MoveInterfaceToNS)
No change to default behavior when annotation is absent
Test
Tested locally on an Azure L1 VM to see if ESAN sidecar can connect to an ESAN instance.