65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"services": [
|
|
{
|
|
"Spec": {"Name": "foo"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10001,
|
|
"Protocol": "tcp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "bar_main"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10003,
|
|
"Protocol": "tcp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "bar_foo"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10003,
|
|
"Protocol": "udp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "baz"},
|
|
"Endpoint": {}
|
|
}
|
|
],
|
|
"nodes": [
|
|
{
|
|
"Description": {"Hostname": "mgr1"},
|
|
"ManagerStatus": {"Addr": "10.0.0.1:2377"},
|
|
"Spec": {"Role": "manager"},
|
|
"Status": {"Addr": "0.0.0.0"}
|
|
}, {
|
|
"Description": {"Hostname": "mgr2"},
|
|
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
|
|
"Spec": {"Role": "manager"},
|
|
"Status": {"Addr": "10.0.0.2"}
|
|
}, {
|
|
"Description": {"Hostname": "worker1"},
|
|
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
|
|
"Spec": {"Role": "worker"},
|
|
"Status": {"Addr": "10.0.1.1"}
|
|
}, {
|
|
"Description": {"Hostname": "worker2"},
|
|
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
|
|
"Spec": {"Role": "worker"},
|
|
"Status": {"Addr": "10.0.1.2"}
|
|
}, {
|
|
"Description": {"Hostname": "worker3"},
|
|
"Status": {"Addr": "10.0.1.3"}
|
|
}
|
|
]
|
|
}
|