Skip to content

Commit

Permalink
Move images to images folder
Browse files Browse the repository at this point in the history
Signed-off-by: lou-lan <[email protected]>
  • Loading branch information
lou-lan committed May 8, 2024
1 parent 12d0d85 commit 1089095
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To solve this problem, EgressGateway has been introduced into the k8s cluster. I

## Architecture

![Architecture](./architecture02.png)
![Architecture](./images/architecture02.png)

## Why EgressGateway

Expand Down
2 changes: 1 addition & 1 deletion docs/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## 架构

![Architecture](./architecture02.png)
![Architecture](./images/architecture02.png)

## 为什么选择 EgressGateway

Expand Down
9 changes: 0 additions & 9 deletions docs/backends.md

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ nav:
- Failover: usage/EgressGatewayFailover.md
- Move EgressIP: usage/MoveIP.md
- Run EgressGateway on Aliyun Cloud: usage/Aliyun.md
- Troubleshooting: usage/Troubleshooting.md
- Concepts:
- Architecture: concepts/Architecture.md
- Datapath: concepts/Datapath.md
Expand All @@ -102,7 +103,6 @@ nav:
- CRD EgressClusterInfo: reference/EgressClusterInfo.md
- egctl cli: reference/egctl.md
- metrics: reference/metrics.md
- Troubleshooting: Troubleshooting.md
- Development:
- DataFlow: develop/Dataflow.md
- Contribute: develop/Contribute.md
Expand Down
Binary file removed docs/proposal/01-egress-gateway/Egress-Gateway.png
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/proposal/01-egress-gateway/EgressGateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:

### Datapath

<img src="Egress-Gateway-Datapath.png" width="70%"></img>
<img src="../../images/Egress-Gateway-Datapath.png" width="70%"></img>

A combination of vxlan tunnel, ipset, iptables, route is required to complete policy control.

Expand Down Expand Up @@ -162,12 +162,12 @@ iptables -t nat -I POSTROUTING 1 -m mark --mark 0x12000000 -j ACCEPT -m comment

Controller consists of Webhook Validator and Reconcile Flow.

<img src="Controller-Reconcile-Flow.png" width="70%"></img>
<img src="../../images/Controller-Reconcile-Flow.png" width="70%"></img>

Controller has 2 control processes, the first Watch cluster nodes, generate tunnel IP address and MAC address for Node, then `Create` or `Update` EgressTunnel CR Status. The second control flow watch `EgressTunnel` and `Egressgateway`, sync match node list from `labelSelector`, election egress gateway node.

### Agent

<img src="Agent-Reconcile-Flow.png" width="70%"></img>
<img src="../../images/Agent-Reconcile-Flow.png" width="70%"></img>

Agent has two control processes, the first Watch `EgressTunnel` CR, which manages node tunnel, and node tunnel is a pluggable interface that can be replaced by Geneve. The second control process manages datapath policy, which watches `EgressTunnel`, `EgressGateway` and `Egresspolicy`, and sends them to the host through the police interface. It is currently implemented by a combination of *ipset*, *iptables*, and *route*, and it can be replaced by *eBPF*.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following are the data from our stress tests using bare metal servers.
| case2 | egress vxlan -> egress vxlan | `9.11 Gbits/sec sender - 9.09 Gbits/sec receiver` |
| case3 | pod -> egress node -> target | `9.01 Gbits/sec sender - 8.98 Gbits/sec receiver` |

![egress-check](./speed.svg)
![egress-check](../images/speed.svg)

#### Virtual machine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EgressGateway 使用了 vxlan 隧道,经过测试 vxlan 损耗在 10% 左右
| case2 | egress vxlan -> egress vxlan | `9.11 Gbits/sec sender - 9.09 Gbits/sec receiver` |
| case3 | pod -> egress node -> target | `9.01 Gbits/sec sender - 8.98 Gbits/sec receiver` |

![egress-check](./speed.svg)
![egress-check](../images/speed.svg)

#### 虚拟机

Expand Down

1 comment on commit 1089095

@weizhoublue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.