• Stars
    star
    2,332
  • Rank 19,731 (Top 0.4 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A CNI meta-plugin for multi-homed pods in Kubernetes

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 plugin, refer to our quick-start guide.

Clone this GitHub repository, and apply a daemonset which installs Multus using kubectl. From the root directory of the clone, apply the daemonset YAML file:

cat ./deployments/multus-daemonset-thick.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

Thin Plugin v.s Thick Plugin

With the multus 4.0 release, we introduce a new client/server-style plugin deployment. This new deployment is called 'thick plugin', in contrast to deployments in previous versions, which is now called a 'thin plugin'. The new thick plugin consists of two binaries, multus-daemon and multus-shim CNI plugin. The 'multus-daemon' will be deployed to all nodes as a local agent and supports additional features, such as metrics, which were not available with the 'thin plugin' deployment before. Due to these additional features, the 'thick plugin' comes with the trade-off of consuming more resources than the 'thin plugin'.

We recommend using the thick plugin in most environments, but if you wish to run the thin plugin, or are in a resource-constrained environment, you may do so with:

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

Additional Installation Options

In addition to the quick-start guide, you may:

Comprehensive Documentation

Contact Us

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

To be invited, use this slack invite link.

More Repositories

1

sriov-network-device-plugin

SRIOV network device plugin for Kubernetes
Go
400
star
2

sriov-cni

DPDK & SR-IOV CNI plugin
Go
308
star
3

whereabouts

A CNI IPAM plugin that assigns IP addresses cluster-wide
Go
279
star
4

ovs-cni

Open vSwitch CNI plugin
Go
219
star
5

sriov-network-operator

Operator for provisioning and configuring SR-IOV CNI plugin and device plugin
Go
82
star
6

bond-cni

Bond-cni is for fail-over and high availability of networking in cloudnative orchestration
Go
63
star
7

reference-deployment

Resources for K8s NPWG's deployment
Shell
44
star
8

multi-net-spec

Multi-network CRD specification
43
star
9

ib-sriov-cni

InfiniBand SR-IOV CNI
Go
42
star
10

network-resources-injector

A Kubernetes Dynamic Admission Controller that patches Pods to add additional information.
Go
42
star
11

rdma-cni

RDMA CNI plugin for containerized workloads
Go
41
star
12

kubemacpool

Go
35
star
13

sriovnet

Go library/package to configure SRIOV networking devices
Go
31
star
14

multus-dynamic-networks-controller

A Kubernetes controller listening to pod's network selection elements. When the multus annotations changes, it will invoke the corresponding delegate
Go
27
star
15

sriov-network-metrics-exporter

Exporter that reads metrics for SR-IOV Virtual Functions and exposes them in the Prometheus format.
Go
24
star
16

multus-service

(TBD)
Go
23
star
17

community

The Network Plumbing Working Group Community information
21
star
18

helm-charts

Helm charts for deployment of NPWG implementations and ancillary tools
Smarty
20
star
19

k8s-net-attach-def-controller

K8s Multi- network service controller
Go
16
star
20

multi-networkpolicy

Go
15
star
21

accelerated-bridge-cni

Go
12
star
22

network-attachment-definition-client

A Golang Kubernetes client
Go
11
star
23

kubectl-multinet

This is a kubectl plugin which outputs Pods' network-status of multi-net-spec,
Go
11
star
24

multi-networkpolicy-iptables

MultiNetworkPolicy iptable based implementation
Go
11
star
25

multi-networkpolicy-tc

Linux Traffic Control (TC) based implementation of Kubernetes NPWG MultiNetworkPolicy API
Go
10
star
26

multusctl

CLI client for Multus CNI
Go
7
star
27

ptp-operator

PTP Operator manages cluster wide PTP configuration
Go
7
star
28

net-attach-def-admission-controller

An admission controller to check resources as defined by the NPWG spec
Go
5
star
29

bridge-operator

Bridge-operator manages linux bridge in Kubernetes cluster node.
Go
4
star
30

cni-log

Cni-log provides general logging functionality for Container Network Interfaces (CNI).
Go
3
star
31

net-service-controller

Network service controller (Multus compatible)
Go
3
star
32

device-info-spec

3
star