generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use netlink library to interface with nftables
kube-network-policies only need a specific set of nftables rules to be present to filter the undesired traffic and enqueue the traffic subject to inspection to userspace. There is an optimization using sets to avoid diverting the traffic that are not subject to policies to avoid the penalty of userspace, but besides that there is no plans to require more interaction with netfilter. Using the netfilter interface with nftables is complex and very low level, but since the netfilter interaction should not change much in the foreseeble future, the removal of the dependency on the userspace tools bring a big advantage in term of image size 72MB vs 92MB as today, and in the maintanance of the image, since we only need to maintain the golang binary.
- Loading branch information
Showing
8 changed files
with
427 additions
and
143 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
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.