added node ip autodetection
Manager now auto-detects the address that an agent connects to the cluster
from and stores it. This is useful for many kinds of internal cluster
management tools.
@@ -88,7 +88,8 @@ Example output:
}
},
"Status": {
- "State": "ready"
+ "State": "ready",
+ "Addr": "168.0.32.137"
},
"ManagerStatus": {
"Leader": true,
@@ -110,6 +111,7 @@ Example output:
Status:
State: Ready
Availability: Active
+ Address: 172.17.0.2
Manager Status:
Address: 172.17.0.2:2377
Raft Status: Reachable
