Skip to content

Releases: WeBankFinTech/Dockin-CNI

Dockin-CNI v0.1.0

02 Feb 06:18
46d6482
Compare
Choose a tag to compare

Dockin-CNI v0.1.0

The first release of dockin-cni.

  • Scroll down to view the English document.

部署指南

准备工作

  • 需要一个webhook地址,用于cni获取pod的网络信息

可在dockin-cni项目的readme中找到更多关于webhook的信息.

安装

使用setup.sh脚本部署cni。

Usage:

  sh setup.sh <option> <webhook url> <network types>

  * Supported options: install, uninstall 
  * If you have more than one network type, using comma to split.

示例:

sh setup.sh install http://127.0.0.1:10002/rmController/getPodMultiNetwork test,dockin

如果你的kubelet的使用的不是默认的cni配置项,那么需要关注setup.sh中以下两个配置项,这两个配置项需要跟kubelet实际使用的配置相对应。

CNI_CONF_PATH="/etc/cni/net.d/"
BIN_DIR="/opt/cni/bin"

卸载

使用以下命令卸载dockin-cni。

PS: 卸载操作不会删除network配置文件,需要自行手动删除,网络配置文件的所在路径默认为/etc/cni/dockin

sh setup.sh uninstall

Feature

  • MultiNetwork
  • Static IP Address for pod

Deploy Guide

Preparations

  • A webhook for cni to get pod network information.

You can looking for readme.md in dokcin-cni project for more detail about webhook.

Installation

Using setup.sh to deploy dockin-cni.

Usage:

  sh setup.sh <option> <webhook url> <network types>

  * Supported options: install, uninstall 
  * If you have more than one network type, using comma to split.

For example:

sh setup.sh install http://127.0.0.1:10002/rmController/getPodMultiNetwork test,dockin

If your kubelet is not using the default CNI configuration, maybe you shoud check the following options in setup.sh.

CNI_CONF_PATH="/etc/cni/net.d/"
BIN_DIR="/opt/cni/bin"

Uninstallation

Using following command to uninstall.

PS: Uninstall will not remove the network config file, you should delete it manually.

sh setup.sh uninstall