simplest-cni

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

README

Simplest CNI (最简单的 CNI)

As I was inspired by the article 也许您的Kubernetes集群并不需要SDN, I found k8s CNI can just use the pod CIDR auto-allocated by the kube-controller-manager for each node with host-local from containernetworking/plugins rather than other IPAM plugins which use distributed stores(i.e etcd) like in Calico or flannel.

Feature

  • CNI 0.3.0
  • auto rotate config as ConfigMap changed

Required

As simplest-CNI uses pod CIDR auto-allocated by the kube-controller-manager, some options are required to be added. --allocate-node-cidrs=true and --cidr-allocator-type=RangeAllocator are required to auto-allocate pod CIDR for each node. --allocate-node-cidrs and --node-cidr-mask-size can be modified to suit your environment.

--allocate-node-cidrs          Should CIDRs for Pods be allocated and set on the cloud provider.
--cidr-allocator-type string   Type of CIDR allocator to use (default "RangeAllocator")
--cluster-cidr string          CIDR Range for Pods in cluster. Requires --allocate-node-cidrs to be true
--node-cidr-mask-size int32    Mask size for node cidr in cluster. (default 24)

Installation

kubectl apply -f https://raw.githubusercontent.com/pikeszfish/simplest-cni/master/k8s/simplest-cni.yml

Build

docker build -t pikeszfish/simplest-cni:v0.1.0 .

Reference

License

simplest-cni is available under the GNU General Public License v3.0. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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