k-vswitch / k-vswitch Goto Github PK
View Code? Open in Web Editor NEWk-vswitch is an easy-to-operate, performant and secure Kubernetes networking plugin based on Open vSwitch
License: Apache License 2.0
k-vswitch is an easy-to-operate, performant and secure Kubernetes networking plugin based on Open vSwitch
License: Apache License 2.0
Current set of OpenFlow rules accounts for both local and remote arp traffic. The good thing here is that there's no ARP broadcast as long as we capture this traffic via OpenFlow. An even better optimization would be to implement a local ARP proxy/responder so remote ARP is not necessary.
Basically, since k-vswitch is based on Open-vSwitch, sFlow support comes for free. We still need to configure sFlow parameters and expose it in the vSwitch config so it can be picked up later during bootstrap.
Some unit tests for syncFlows() would be nice. One approach is to create a kubernetes fake client, generate the resources we are watching for (vswitchconfig, pods and network policies) and validate that the flows buffer that would be passed into ovs-ofctl replace-flows
. It doesn't actually validate that the flows are configured properly but I think it's still a good improvement from what we have now.
Currently we create a node-local
internal port for local pod subnet traffic, it would be simpler to assign the local pod subnet directly on the OVS bridge instead.
cc @zanetworker
Like most CNI plugins, k-vswitch is creating a veth pair with the given network namespace and attaching one end of the veth pair to the OVS bridge. A possible performance optimization would be to have each pod network namespace behind an OVS internal port rather than a veth pair, possibly less overhead on the kernel.
OVS has Windows support and in Kubernetes v1.14, Windows support went GA. k-vswitch, if possible, should also have Windows support as a Kubernetes CNI.
In #10 as part of implementing ARP responder we had to duplicate the code from github.com/containernetworking/plugins which was responsible for creating the veth pair. This is ok for now but we should consider ways to get rid of this duplicated code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.