• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ZTE/Knitter: Kubernetes network solution

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ZTE/Knitter

开源软件地址(OpenSource Url):

https://github.com/ZTE/Knitter

开源编程语言(OpenSource Language):

Go 94.4%

开源软件介绍(OpenSource Introduction):

Knitter

Build Status Go Report Card Coverage Status

Overview

  • is a CNI plugin to support multiple network interfaces in a Kubernetes pod.
  • provides the ability for a pod (e.g., VNF in pod) to attach to high-performance networks.
  • allows users specifying customized networks according to their infrastructure.
  • can run on public clouds, private clouds and hybrid clouds.
  • supports both VM and bare-metal cloud environments.

Architecture

Knitter includes four components:

  • Knitter-manager: it runs on a central controller node (which can be K8S master or a separate host). It interactives with network infrastructure and manages the network(s) that used by the cluster. Knitter-manager serves as an API server.
  • Knitter-plugin: it's a CNI plugin which is invoked by kubelet with CNI API. It forwards the network setting up request from kubelet to Knitter-agent and sends the result back.
  • Knitter-agent: it runs on each node of the K8S cluster. It processes the forwarded request from Knitter-plugin. It queries networks configured in annotations of pod spec from kube-apiserver. Then it requests Knitter-manager to allocate all the needed resources. Once all things are ready, it sets up the network stack for the pod. Once it finishes, it sends the result back to Knitter-plugin.
  • Knitter-monitor: it also runs on a central controller node(which can be K8S master or a a separate host).It Mainly reponsible for parsing the configuration and managing logical resources.

components

One of the topology of K8S management network and pod networks is as below. It can vary depending on the mode of Knitter.

topology

Build

It is easy to build all knitter commponents, just need to run make build or make all commands.

make build 
or
make all

All knitter related binaries are placed into temp directory "_output", normally you will see 4 components(knitter-manager/knitter-monitor/knitter-agent/knitter-plugin). Knitter only surpport linux platform currently.

Usage

Knitter is not a only CNI plugin, but it is a full network solutions.So if you'd like run knitter, you should install all related compontents of knitter including knitter-manger、knitter-monitor、knitter-agent、knitter-plugin. All knitter binaries have a seperated configuration(use json formation currently), and you can check a full description from knitter docs.

Contributing

Contributions should be made via pull requests. Pull requests will be reviewed by one or more maintainers and merged when acceptable. All contributions are welcome - Knitter uses the Apache 2 license and does not require any contributor agreement to submit patches. Please open issues for any bugs or problems you encounter. We hope that before contributing, please make the effort to coordinate with the maintainers of the project before submitting high impact PRs. This will prevent you from doing extra work that may or may not be merged.Larger changes typically work best with design documents , similar to those found in knitter docs . These are focused on providing context of the design at the time the feature was conceived and can inform future documentation contributions . Make sure that new tests are added for bugs in order to catch regressions and tests for new features to exercise the new functionality that is added .

If you want to run the test suite(especially e2e test), make sure you have your environment set up, and from the origin directory run:

make verify

After excute this command, it wili run verify process including check and unit test processes.

make test-ut

As you can see, it will only run unit test process.

make test-e2e

This will run knitter e2e test cases, but now we have't finish this process. We will finish this in next weeks.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap