Skip to content

adrian-pino/k8s-multuscni-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multus CNI Testing Repository

Introduction

This repository is dedicated to testing and demonstrating the capabilities of the Multus CNI plugin in a Kubernetes environment. Multus CNI is an extended Container Network Interface (CNI) plugin that enables attaching multiple network interfaces to pods in Kubernetes. It acts as a "meta-plugin" that calls other CNI plugins and allows for configuring multiple networking interfaces in a single pod. This repository is highly inspired by the insights shared in the Red Hat blog post on using the Multus CNI in OpenShift.

Multus CNI Overview

Multus CNI provides the flexibility of combining different networking solutions, enabling more complex networking topologies and addressing more advanced networking needs in Kubernetes. It supports all reference CNI plugins (like Flannel, DHCP, Macvlan) alongside with several others.

Repository Structure

This repository contains configurations and YAML definitions for testing different network interfaces using Multus CNI, including:

  • Bridge
  • Host-Device
  • Macvlan
  • Ipvlan

Additionally, a clean directory is included for cleanup instructions. This script could be run in case of a weird behaviour in MultusCNI.

To provide better context, different figures extracted from Red Hat blog post on using the Multus CNI in OpenShift have been attached:

Bridge Configuration

Host-device Configuration

Macvlan Configuration

Ipvlan Configuration

Getting Started

To get started with testing:

  1. Clone the repository in a deviced with access to the kube-apiserver (e.g: kubemaster)
  2. Navigate to the directory of the network type you wish to test (e.g., cd bridge).
  3. Apply the YAML files using kubectl apply -f <filename>.yaml.

Refer to the individual readme.txt files in each directory for more detailed instructions or notes about each networking type.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published