81 lines
2.3 KiB
JSON
81 lines
2.3 KiB
JSON
{
|
|
"services": [
|
|
{
|
|
"Spec": {"Name": "foo"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10001,
|
|
"Protocol": "tcp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "bar_main"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10003,
|
|
"Protocol": "tcp"
|
|
}, {
|
|
"PublishedPort": 10004,
|
|
"Protocol": "tcp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "bar_baz"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10005,
|
|
"Protocol": "tcp"
|
|
}, {
|
|
"PublishedPort": 10006,
|
|
"Protocol": "tcp"
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"Spec": {"Name": "bar_foo"},
|
|
"Endpoint": {
|
|
"Ports": [
|
|
{
|
|
"PublishedPort": 10001,
|
|
"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"}
|
|
}
|
|
]
|
|
}
|