Day 7/100daysofK8s
Apr 14, 2021
Docker networking and namespaces.
One of the networking options docker provides is connection via a Bridge network. For all the namespaces, there is a common interface created, to which all the namespaces connect. To make the connection, — 1) Create a virtual cable, i.e. veth pairs 2) Connect one of the cable to the namespace and the other to the bridge 3) Assign IP addresses and add port forwarding so that the outside world can communicate with the namespaces. So any request coming to port host:N will be forwarded to bridgeIP:M