terway

module
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0

README

Terway CNI Plugin

CNI plugin for Alibaba Cloud VPC/ENI

Go Report Card codecov Linter

English | 简体中文

Introduction

Terway is a self-developed CNI (Container Network Interface) plugin for ACK (Alibaba Cloud Kubernetes), built on Alibaba Cloud's Elastic Network Interface (ENI) technology. It optimizes cloud resource usage and enhances network performance. Terway supports eBPF for traffic acceleration, reducing latency, and adheres to Kubernetes Network Policy standards for container-to-container access control.

In Terway, each Pod has its own network stack and IP address. Pods on the same ECS (Elastic Compute Service) instance communicate directly, while cross-ECS Pod communication transits directly through VPC ENIs, avoiding encapsulation with technologies like VxLAN for higher communication performance.

Features

  • ENI Network Mode: Allocates ENIs to Pods for optimized resource utilization and network performance.
  • Trunking Feature: Allows Pods to have independent ENIs for flexible security group and switch configurations.
  • Node Pool Network Mode Configuration: Supports configuring node pools for exclusive ENI usage.
  • Security Policies: Supports NetworkPolicy and traditional security groups for multi-dimensional network security control.
  • High Performance: Utilizes eBPF for protocol stack acceleration, ensuring low latency and high throughput.
  • IPv6 Support: Dual-stack support for both IPv4 and IPv6.
  • Intelligent Computing Lingjun:Linjun support.
Deprecated Features
  • VPC Network Mode: Direct communication to VPC resources using VPC routing.

  • Exclusive ENI Mode: Direct ENI attachment to Pods for maximum performance.(Replace with configuring the network mode through node pool dimension as a dedicated ENI.)

Version Differences

ACK-provided versions are identical to the open-source version, except the Trunking feature is not available in self-hosted clusters.

Contributions

We warmly welcome community contributions! Whether it's bug fixes, new features, documentation improvements, or code enhancements, your help is appreciated.

Report Issues Submit Pull Request

Security

If you discover a security vulnerability in the code, please contact kubernetes-security@service.aliyun.com. Refer to SECURITY.md for details.

Community

DingTalk

Join DingTalk group by DingTalkGroup id "35924643".

Directories

Path Synopsis
cmd
terway command
terway-cli command
examples
maxpods command
pkg
apis/network.alibabacloud.com/v1beta1
Package v1beta1 Package is the v1beta1 version of the API.
Package v1beta1 Package is the v1beta1 version of the API.
controller/all
Package all register all controllers
Package all register all controllers
eni
generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/versioned/typed/network.alibabacloud.com/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/network.alibabacloud.com/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
ip
k8s
smc
tc
plugin
terway command
tests

Jump to

Keyboard shortcuts

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