Skip to main content
Version: v1.4

Raven

1. Background

In edge computing, edge-edge and edge-cloud communication are common network communication scenarios, and in OpenYurt, we developed the Raven project to provide a solution for edge-edge-cloud container network to communicate with host network In an OpenYurt cluster, Pods located in different physical areas may require the use of Pod IP The Service IP or Service name communicates with other Pods, and while these Pods are in a single K8s cluster, they are in different physical areas (network domains) and cannot communicate directly, so the Raven project was developed to address this

2. Architecture

As following picture, the architecture of Raven have two components:

  • Yurt Manager:The native Kubernetes controller is deployed in some nodes on the cloud as a Deployment, monitoring the status of edge nodes, selecting an egress for cross-edge traffic as a gateway node for each edge node pool. When the current gateway node is dead and other node will be switched. All cross-edge traffic will be forwarded by the gateway node of each edge node pool;

  • Raven Agent:It is deployed as a DaemonSet and runs on each node of the K8s cluster. It configures route or VPN tunnel on the node according to the role of each node (gateway or non-gateway);

Tunnel Mode

img

Proxy Mode

img

The above two components are connected by a Gateway CRD to exchange routes and VPN tunnels, as shown in the following picture:

img

For more details, please refer to the code repository of the Raven project:

3. Features and Advantages

Features:

  • No intrusion: No intrusion into the native K8s CNI network, only cross-edge traffic is hijacked for forwarding
  • Security: Use stable IPsec to encrypt cross-edge traffic

Advantages:

  • Raven will try to use the network capabilities of the edge itself, create edge-to-edge VPN tunnels as possible, and will not forward all cross-edge traffic through the cloud center
  • Raven does not hijack the traffic in the same edge node pool, and keeps the CNI capabilities of the cluster itself

4. Version

Raven Controller Manager:

versionimagereleasecontentcomment
v0.1.0openyurt/raven-controller-manager:v0.1.02022.05firstsupport Gateway Node election
v0.2.0openyurt/raven-controller-manager:v0.2.02022.12featuresupport multi Pod CIDRs
support Calico
v0.3.0openyurt/raven-controller-manager:v0.3.02023.1featuresupport node IP forwarding

Note: The Raven Controller Manger required by the Raven component is refactured in YurtManager and includes the following Controller: GatewayDNSController GatewayPickupController GatewayInternalServiceController GatewayPublicServiceController. For details, see yurt-manager.

Raven Agent

versionimagereleasecontentcomment
v0.1.0openyurt/raven-agent:v0.1.02022.05firstSupport IPsec as VPN backend, which implemented by using libreswan
v0.2.0openyurt/raven-agent:v0.2.02022.12featureSupport WireGuard as VPN backend
Support Calico
v0.3.0openyurt/raven-agent:v0.3.02023.1featureSupport node IP forwarding
v0.4.0openyurt/raven-agent:0.4.02023.11featureSupport raven l7 proxy
v0.4.1openyurt/raven-agent:0.4.12024.3featureSupport raven l3 NAT traverse

5. future plan

  • Support SLB as public network exporter for gateway 【issue #22
  • Support NAT traversal 【issue #13
  • Support distribute route path decision 【issue #14
    • route path cost evaluation
    • shortest path decision
    • keep networking connection alive during paths change

Welcome interested students to join us and contribute code!!