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
What happened:
When node attempts to access its own local hostPort mapped to pod, traffic will never reach container networking stack but instead be dropped by TCP/IP stack.
What you expected to happen:
I would expect traffic to be routed from TCP/IP stack to container networking stack. To achieve this, we need to substitute the hcsshim.NatPolicy
This should be switched from V1 HNS to V2 HCN API and set LocalRoutedVIP flag. This will instrument the OS to add a route to the host which will make this traffic reach vSwitch.
Here is some sample code to replace the hcsshim.NatPolicy:
What happened:
When node attempts to access its own local hostPort mapped to pod, traffic will never reach container networking stack but instead be dropped by TCP/IP stack.
What you expected to happen:
I would expect traffic to be routed from TCP/IP stack to container networking stack. To achieve this, we need to substitute the hcsshim.NatPolicy
This should be switched from V1 HNS to V2 HCN API and set LocalRoutedVIP flag. This will instrument the OS to add a route to the host which will make this traffic reach vSwitch.
Here is some sample code to replace the
hcsshim.NatPolicy
:How to reproduce it:
Orchestrator and Version (e.g. Kubernetes, Docker):
Kubernetes
Operating System (Linux/Windows):
Windows Server 2022 + Windows Server 2019
Kernel (e.g.
uanme -a
for Linux or$(Get-ItemProperty -Path "C:\windows\system32\hal.dll").VersionInfo.FileVersion
for Windows):Anything else we need to know?:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: