OVN
最后更新于
ovn-kubernetes is a network plugin for ovs OVN, which supports two modes: underlay and overlay.
underlay: The container operates within a virtual machine while ovs runs on the physical machine that hosts the virtual machine, with OVN bridging the container network to the virtual machine network.
overlay: OVN connects containers across all nodes through a logical overlay network; in this scenario, ovs is able to run directly on either a physical or a virtual machine.
ADD Operation
Retrieve ip/mac/gateway from ovn
annotation.
Configure interface and routing within the container's netns.
Add ovs port.
DEL Operation
This mode has not been implemented yet.
All nodes set up package repositories and install common dependencies:
The Master node also installs ovn-central:
The Node installs ovn-host:
Imagine a world where containers (think digital shipping containers for software) can seamlessly communicate across different machines, be they bulky hardware or sleek virtual environments. Enter ovn-kubernetes, the conductor that orchestrates this symphony of networks with its handy network plugin for ovs OVN. This crafty tool supports two distinct networking modes to suit different setups: underlay and overlay.
underlay mode is like a bridge. It's where the containers, tucked inside virtual machines, chat over a network managed by ovs on the hosts' actual physical servers. It connects container talk to virtual machine talk.
overlay mode, on the other hand, creates a network of invisible tunnels that allow containers on different nodes to mingle as if they were at the same grand ball. And in this case, ovs doesn't care whether it's hobnobbing with physical machines or virtual ones.
To give you a visual, here's a slick diagram indicating how this all fits together in overlay mode:
To kick things off on the master node (the lead conductor), you'd punch in some commands to stir the OVN components awake, followed by summoning the ovnkube
(the orchestra), set to take commands and start the performance.
Similarly, the individual nodes (each an orchestra member with their own instrument) receive their tuning instructions. They get set up to join in the network serenade, ready to perform in harmony with the master node's direction.
The Container Network Interface (CNI) plugin conducts two vital operations:
The ADD operation, akin to guiding a musician to their seat, involves configuring network interfaces and paths for the containers so they can join the ensemble.
The DELETE operation is like gently ushering a musician offstage after their performance, removing their association with the network orchestra.
This mode's music sheets are still being written. Stay tuned, as they say.
All nodes, whether they're master nodes or not, need to set up with the essentials. They'll install OVN similar to how you'd set up chairs and music stands before a concert.
And that's it! With the installation complete, the nodes are ready, instruments tuned, for the container network concert that is OVN.
For those who want to delve deeper or play along, check out the original score at ovn-kubernetes.