Closed ProjectInitiative closed 3 years ago
5 Physical nodes
docker create network test -d overlay --attachable
docker stack deploy test-stack --compose-file ./test-stack.yml
First find whichever node ubuntu1 (test server) is running on:
docker stack ps test-stack
Pick any other node and docker exec or ssh into ubuntu2
exec
ssh
Running any of the following 5 commands produce a response from the test server:
ping test-stack_ubuntu1 curl test-stack_ubuntu1:8000 curl <ANY-MANAGER-NODE-IP>:8000 telnet test-stack_ubuntu1:8000 telnet <ANY-MANAGER-NODE-IP>:8000
Run this on any of the manager nodes:
docker-compose -f ./keepalived.yml up -d
Re-running the tests above ping seems to work, but all others fail to connect
ping
keepalived-sample-configs.zip
Issue was solved after discovering an IP subnet mask mismatch that propagated throughout the environment. All is working as expected.
Setup:
5 Physical nodes
Create Test Overlay Network
Deploy Test Stack
Run Tests
First find whichever node ubuntu1 (test server) is running on:
Pick any other node and docker
exec
orssh
into ubuntu2Running any of the following 5 commands produce a response from the test server:
Start osixia/keepalived:2.0.20
Run this on any of the manager nodes:
Re-Run Test
Re-running the tests above
ping
seems to work, but all others fail to connectkeepalived-sample-configs.zip