What is required to enable overlay networking in a Docker Swarm cluster?
easy📝 Conceptual Q2 of 15
Docker - Swarm
What is required to enable overlay networking in a Docker Swarm cluster?
AAll nodes must be part of the same Swarm and have network connectivity.
BEach node must have a unique IP address but can be outside the Swarm.
COverlay networks work without any special configuration in Swarm.
DNodes must share the same physical network switch.
Step-by-Step Solution
Solution:
Step 1: Identify overlay network requirements in Swarm
Overlay networks require nodes to be in the same Swarm and connected over the network.
Step 2: Analyze options
All nodes must be part of the same Swarm and have network connectivity. correctly states the requirement. Each node must have a unique IP address but can be outside the Swarm. is incorrect because nodes must be in the Swarm. Overlay networks work without any special configuration in Swarm. is false; configuration is needed. Nodes must share the same physical network switch. is not required.
Final Answer:
All nodes must be part of the same Swarm and have network connectivity. -> Option A
Quick Check:
Overlay network setup = nodes in same Swarm + connectivity [OK]
Quick Trick:Nodes must be in same Swarm with network access [OK]
Common Mistakes:
Assuming overlay works outside Swarm
Thinking physical switch sharing is mandatory
Ignoring network connectivity between nodes
Master "Swarm" in Docker
9 interactive learning modes - each teaches the same concept differently