kubernetesweave

Kubernetes weave how to create pod with network that uses bridge as network?


I am a beginner at using Kubernetes, so I don't fully understand how creating networks for pods works. How can I create pods on a node that can communicate with a an OVS bridge, say br0 using the weave plugin.

Is there any way I can create a network using the bridge itself or is there a way to forward traffic to that bridge.

I need to use the weave plugin so suggesting another wouldn't be useful to me. The whole idea for this is to create a service chain using an ovs bridge interface.


Solution

  • I found what I needed. Once you have created an OVS bridge on the node you can create a bridge and a new interface on a pod to it.

    Using the following command you create the eth1 interface on the container you want bridged to the ovs-br0, change names of variable to suit your topology.

    ovs-docker add-port ovs-br0 eth1 k8s_plex-server2_plex-server2_default_742f2aa2-57b6-4a92-8225-4fa25ff65705_0  --ipaddress=10.50.0.11/16