Skip to content
forked from qingwave/mycni

Mycni is a simple CNI plugin basde on linux brige and routes for Kubernetes

License

Notifications You must be signed in to change notification settings

caodailiang/mycni

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyCNI

A simple CNI plugin for kubernetes, similar with Flannel host-gw.

Components

mycni: CNI plugin for containers, create Linux Bridge, veth pair and assign IP for Pod. mycnid: daemon service on each host, watch Nodes and set routes, iptables for each host.

Network architecture: mycni-network-arch

Quick Start

Deploy MyCNI into your kubernetes cluster

!!! It will deploy a DaemonSet application in all nodes, please run this in your dev cluster or kind/minikube

kubectl apply -f https://raw.githubusercontent.com/qingwave/mycni/main/deploy/mycni.yaml

Develop

It's more easier to use kind cluster for test. Create a kind cluster

make kind-cluster

Build image

make docker-build

Load image into kind cluster [optional]

make kind-image-load

Deploy CNI

make deploy

About

Mycni is a simple CNI plugin basde on linux brige and routes for Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 86.3%
  • Shell 9.7%
  • Makefile 2.2%
  • Dockerfile 1.8%