- Getting Started with Kubernetes
- Jonathan Baier Jesse White
- 253字
- 2021-06-10 19:47:11
Docker user-defined networks
In order to address the cross-machine communication issue and allow greater flexibility, Docker also supports user-defined networks via network plugins. These networks exist independent of the containers themselves. In this way, containers can join the same existing networks. Through the new plugin architecture, various drivers can be provided for different network use cases such as the following:
- Swarm: In a clustered situation with Swarm, the default behavior is an overlay network, which allows you to connect multiple Docker daemons running on multiple machines. In order to coordinate across multiple hosts, all containers and daemons must all agree on the available networks and their topologies. Overlay networking introduces a significant amount of complexity with dynamic port mapping that Kubernetes avoids.
You can read more about overlay networks here: https://docs.docker.com/network/overlay/.
- Macvlan: Docker also provides macvlan addressing, which is most similar to the networking model that Kubernetes provides, as it assigns each Docker container a MAC address that makes it appear as a physical device on your network. Macvlan offers a more efficient network virtualization and isolation as it bypasses the Linux bridge. It is important to note that as of this book's publishing, Macvlan isn't supported in most cloud providers.
As a result of these options, Docker must manage complex port allocation on a per-machine basis for each host IP, and that information must be maintained and propagated to all other machines in the cluster. Docker users a gossip protocol to manage the forwarding and proxying of ports to other containers.
推薦閱讀
- 集成架構(gòu)中型系統(tǒng)
- 大數(shù)據(jù)導(dǎo)論:思維、技術(shù)與應(yīng)用
- Clojure Data Analysis Cookbook
- 大學(xué)計算機(jī)基礎(chǔ):基礎(chǔ)理論篇
- 機(jī)器學(xué)習(xí)及應(yīng)用(在線實驗+在線自測)
- 數(shù)控銑削(加工中心)編程與加工
- Deep Reinforcement Learning Hands-On
- Building a BeagleBone Black Super Cluster
- Word 2007,Excel 2007辦公應(yīng)用融會貫通
- 網(wǎng)絡(luò)服務(wù)器搭建與管理
- Learn QGIS
- 經(jīng)典Java EE企業(yè)應(yīng)用實戰(zhàn)
- 簡明學(xué)中文版Flash動畫制作
- Machine Learning with Spark(Second Edition)
- WPF專業(yè)編程指南