Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

New proposal for connection between Alcor Kubernetes Cluster and Distrinet #42

@VanderChen

Description

@VanderChen

As mentioned in issue #33, vHosts in Distrinet are connected to a Linux bridge. An intuitive solution to connect k8s and vHosts is connecting the k8s pod to the same Linux bridge. Network Plugin in k8s provides this ability.

image

The work scheme of the CNI-Linux bridge is shown as follows.

image

Todo List:

  • Change Alcor k8s ansible scripts to enable the CNI plugin.
  • Test the connection between pods and LXD containers via Linux bridge.
  • Combine Alcor Kubernetes Cluster and Distrinet.
  • Test throughput performance.
cat >/etc/cni/net.d/10-mynet.conf <<EOF
{
        "cniVersion": "0.3.1",
        "name": "mynet",
        "plugins": [
          {
                "name": "mynet",
                "type": "bridge",
                "bridge": "cni0",
                "isGateway": true, 
                "ipam": {
                      "type": "host-local",
                      "subnet": "192.168.204.2/24",
                      "rangeStart": "192.168.204.0",
                      "rangeEnd": "192.168.204.254",
                      "routes": [
                               { "dst": "0.0.0.0/0" }
                       ]
                }
          }
        ]
}
EOF

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions