pdgetrf / ArktosEdge

2 stars 2 forks source link

Add cross-cluster path to Mizar data plane #24

Open pdgetrf opened 3 years ago

pdgetrf commented 3 years ago

Add a path to Mizar divider such that when the targeted pod is not in the current cluster, divert the traffic to the gateway.

The gateway maintains a map between subnet CIDR and cluster gateways entry point (IP).

Since Mizar does not yet provide pod-vpc binding, this work could be worked around by using the Kind method that Mizar team has been using for their demos. Follow their setup but instead of creating one cluster setup, extend it to two. The goal is to show that the entire flow can work correctly going from pod in one cluster to another pod in another cluster.

jshaofuturewei commented 3 years ago

There is an assumption that subnets and gateways are unique across clusters.

The in-cluster communication is based on pod IPs. HTTP routes are set up to find pod IPs (different subnets) and redirect to their matched gateways.

All the clusters are supposed to mountain the same subnet - gateway maps.