multus-cni

module
v3.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2022 License: Apache-2.0

README

Multus-CNI

multus-cni Logo

BuildTestGo Report CardCoverage Status

Multus CNI enables attaching multiple network interfaces to pods in Kubernetes.

How it works

Multus CNI is a container network interface (CNI) plugin for Kubernetes that enables attaching multiple network interfaces to pods. Typically, in Kubernetes each pod only has one network interface (apart from a loopback) -- with Multus you can create a multi-homed pod that has multiple interfaces. This is accomplished by Multus acting as a "meta-plugin", a CNI plugin that can call multiple other CNI plugins.

Multus CNI follows the Kubernetes Network Custom Resource Definition De-facto Standard to provide a standardized method by which to specify the configurations for additional network interfaces. This standard is put forward by the Kubernetes Network Plumbing Working Group.

Multus is one of the projects in the Baremetal Container Experience kit

Multi-Homed pod

Here's an illustration of the network interfaces attached to a pod, as provisioned by Multus CNI. The diagram shows the pod with three interfaces: eth0, net0 and net1. eth0 connects kubernetes cluster network to connect with kubernetes server/services (e.g. kubernetes api-server, kubelet and so on). net0 and net1 are additional network attachments and connect to other networks by using other CNI plugins (e.g. vlan/vxlan/ptp).

multus-pod-image

Quickstart Installation Guide

The quickstart installation method for Multus requires that you have first installed a Kubernetes CNI plugin to serve as your pod-to-pod network, which we refer to as your "default network" (a network interface that every pod will be created with). Each network attachment created by Multus will be in addition to this default network interface. For more detail on installing a default network CNI plugins, refer to our quick-start guide.

Clone this GitHub repository, we'll apply a daemonset which installs Multus using to kubectl from this repo. From the root directory of the clone, apply the daemonset YAML file:

cat ./deployments/multus-daemonset-thick-plugin.yml | kubectl apply -f -

This will configure your systems to be ready to use Multus CNI, but, to get started with adding additional interfaces to your pods, refer to our complete quick-start guide

Additional installation Options

  • Install via daemonset using the quick-start guide, above.
  • Download binaries from release page
  • By Docker image from Docker Hub
  • Or, roll-your-own and build from source

Comprehensive Documentation

Contact Us

For any questions about Multus CNI, feel free to ask a question in #general in the NPWG Slack, or open up a GitHub issue. Request an invite to NPWG slack here.

Directories

Path Synopsis
cmd
This is a "Multi-plugin".The delegate concept referred from CNI project It reads other plugin netconf, and then invoke them, e.g.
This is a "Multi-plugin".The delegate concept referred from CNI project It reads other plugin netconf, and then invoke them, e.g.
config-generation
this generates kubeconfig file for multus based on service account
this generates kubeconfig file for multus based on service account
controller
this is daemonized entrypoint process.
this is daemonized entrypoint process.
pkg
checkpoint
Package checkpoint is the package that contains the libraries that manipulates kubelet's checkpoint API
Package checkpoint is the package that contains the libraries that manipulates kubelet's checkpoint API
config
Package config is the package that contains multus cni config related utilities.
Package config is the package that contains multus cni config related utilities.
k8sclient
Package k8sclient is the package that contains the Kubernetes client libraries.
Package k8sclient is the package that contains the Kubernetes client libraries.
kubeletclient
Package kubeletclient is the package that contains the kubelet's libraries that controls podresource API in kubelet
Package kubeletclient is the package that contains the kubelet's libraries that controls podresource API in kubelet
logging
Package logging is the package that contains logging library.
Package logging is the package that contains logging library.
multus
Package multus is the package that contains main multus function, which manipulates CNI request for delegate plugins.
Package multus is the package that contains main multus function, which manipulates CNI request for delegate plugins.
netutils
Package netutils is the package that contains network related utilities.
Package netutils is the package that contains network related utilities.
testing
Package testing is the package that contains unit-test libraries.
Package testing is the package that contains unit-test libraries.
types
Package types contains common types in the multus.
Package types contains common types in the multus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL