Home > other >  Voerlay network problems
Voerlay network problems

Time:09-16

Environment: ali cloud A, huawei cloud B
Initial swarm network set up A node label type=ali
B join swarm network Settings work node label type=hw

In A management node docker stack deploy - c test. Yaml
The script content is as follows:
 
Version: "3"

Networks:
Test:
Driver: overlay

Services:
Busybox1:
Image: busybox
Environment:
- FABRIC_LOGGING_SPEC=INFO
Command: ping www.baidu.com
Deploy:
Placement:
Constraints:
- node. Labels. Type==ali
Networks:
- the test

Busybox2:
Image: busybox
Environment:
- FABRIC_LOGGING_SPEC=DEBUG
Command: ping www.baidu.com
Deploy:
Placement:
Constraints:
- node. Labels. Type==hw
Networks:
- the test


Ping in busybox1 busybox2 parsing IP address is not hw cloud server corresponding binding elastic IP networks outside, but also not the container or hosting network IP
Ping directly in busybox1 busybox2 corresponding elastic IP networks outside can be ping,
Excuse me, why ping directly busybox2 domain name, IP will be resolved as the unknown?

The same script, I in the same network segment to test the two host machine, can be ping the domain name
  • Related