-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework IP rules/routing for Kubernetes clustering
Add IP rules for the Kubernetes Pod and Service CIDRs to ensure that traffic within the Kubernetes network uses the main routing table, which contains routes installed by the CNI. These IP rules must have a higher priority than the per-port rules for dom0-initiated connections. Otherwise, there could be scenarios where packet sent to a Kubernetes service is DNAT-ed by kube-proxy to a service backend located on another node, and this (dom0-initiated, with port src IP) DNATed flow bypasses the VXLAN tunnel and is sent out without encapsulation, thus getting lost/dropped. Also, we do not need to have special marks for Kubernetes traffic anymore. The iptables rules that prevent traffic from being forwarded between device ports no longer depend on connection marking and therefore we do not need to have connection marks for every traffic allowed for forwarding. Signed-off-by: Milan Lenco <milan@zededa.com>
- Loading branch information
1 parent
dd27fe1
commit eed46dc
Showing
10 changed files
with
241 additions
and
399 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.