Open megaezz opened 5 months ago
Hi @megaezz. Thanks for using DIRD.
DIRD cannot autodetect the node IPs across your clutster, as it can only detect the node IP for the node it is running on.
You seem to know your node IPs though: 10.0.0.2, 10.0.0.10, 10.0.0.26, 10.0.0.40
You could try therefore:
docker service create --name=dird-global --mode=global --env="DOCKER_NODE_HOSTNAME={{.Node.Hostname}}" --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock newsnowlabs/dird:latest --global-service --install --preexisting --ingress-gateway-ips 10.0.0.2,10.0.0.10,10.0.0.26,10.0.0.40
N.B. Running the newsnowlabs/dird:latest
image is not yet officially supported!
Hello, friend. I'm trying to use DIRD as docker global service. I have several nodes: 10.0.0.2, 10.0.0.10, 10.0.0.26, 10.0.0.40 I created a service:
docker service create --name=dird-global --mode=global --env="DOCKER_NODE_HOSTNAME={{.Node.Hostname}}" --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock newsnowlabs/dird:latest --global-service --install --preexisting
But only node with ip 10.0.0.2 got real client ip. Other nodes doesn't. Because service doesn't detect node ips automatically and by default apply rules for nodes 10.0.0.2 - 10.0.0.9 - I see it from logs. So that's why 10.0.0.2 works and other doesn't.For example, logs of node 10.0.0.26:
How to enable auto detecting of node ips?