2020-01-27 16:25:39 +00:00
|
|
|
{
|
|
|
|
"services": [
|
|
|
|
{
|
2020-01-28 13:57:24 +00:00
|
|
|
"Spec": {"Name": "foo"},
|
2020-01-27 16:25:39 +00:00
|
|
|
"Endpoint": {
|
|
|
|
"Ports": [
|
2021-02-22 10:22:35 +00:00
|
|
|
{
|
|
|
|
"PublishedPort": 10001,
|
2023-02-27 21:36:53 +00:00
|
|
|
"TargetPort": 80,
|
|
|
|
"Protocol": "tcp"
|
|
|
|
}, {
|
|
|
|
"PublishedPort": 10002,
|
|
|
|
"TargetPort": 3306,
|
2021-02-22 10:22:35 +00:00
|
|
|
"Protocol": "tcp"
|
|
|
|
}
|
2020-01-27 16:25:39 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}, {
|
2023-02-27 21:36:53 +00:00
|
|
|
"Spec": {"Name": "foo_bar"},
|
2020-01-27 16:25:39 +00:00
|
|
|
"Endpoint": {
|
2020-01-28 13:57:24 +00:00
|
|
|
"Ports": [
|
2021-02-22 10:22:35 +00:00
|
|
|
{
|
|
|
|
"PublishedPort": 10003,
|
2023-02-27 21:36:53 +00:00
|
|
|
"TargetPort": 443,
|
2021-02-22 10:22:35 +00:00
|
|
|
"Protocol": "tcp"
|
2023-02-27 21:36:53 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"Spec": {"Name": "bar_main"},
|
|
|
|
"Endpoint": {
|
|
|
|
"Ports": [
|
|
|
|
{
|
2023-02-22 17:33:35 +00:00
|
|
|
"PublishedPort": 10004,
|
2023-02-27 21:36:53 +00:00
|
|
|
"TargetPort": 3584,
|
|
|
|
"Protocol": "tcp"
|
|
|
|
}, {
|
|
|
|
"PublishedPort": 10005,
|
|
|
|
"TargetPort": 443,
|
2023-02-22 17:33:35 +00:00
|
|
|
"Protocol": "tcp"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
"Spec": {"Name": "bar_baz"},
|
|
|
|
"Endpoint": {
|
|
|
|
"Ports": [
|
|
|
|
{
|
2023-02-27 21:36:53 +00:00
|
|
|
"PublishedPort": 10006,
|
|
|
|
"TargetPort": 101,
|
2023-02-22 17:33:35 +00:00
|
|
|
"Protocol": "tcp"
|
|
|
|
}, {
|
2023-02-27 21:36:53 +00:00
|
|
|
"PublishedPort": 10007,
|
|
|
|
"TargetPort": 80,
|
2023-02-22 17:33:35 +00:00
|
|
|
"Protocol": "tcp"
|
2021-02-22 10:22:35 +00:00
|
|
|
}
|
2020-01-28 13:57:24 +00:00
|
|
|
]
|
2020-01-27 16:25:39 +00:00
|
|
|
}
|
|
|
|
}, {
|
2020-01-28 13:57:24 +00:00
|
|
|
"Spec": {"Name": "bar_foo"},
|
2020-01-27 16:25:39 +00:00
|
|
|
"Endpoint": {
|
|
|
|
"Ports": [
|
2021-02-22 10:22:35 +00:00
|
|
|
{
|
2023-02-22 17:33:35 +00:00
|
|
|
"PublishedPort": 10001,
|
2023-02-27 21:36:53 +00:00
|
|
|
"TargetPort": 100,
|
2021-02-22 10:22:35 +00:00
|
|
|
"Protocol": "udp"
|
|
|
|
}
|
2020-01-27 16:25:39 +00:00
|
|
|
]
|
|
|
|
}
|
2020-01-28 13:57:24 +00:00
|
|
|
}, {
|
|
|
|
"Spec": {"Name": "baz"},
|
|
|
|
"Endpoint": {}
|
2020-01-27 16:25:39 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"nodes": [
|
|
|
|
{
|
2021-11-22 14:45:49 +00:00
|
|
|
"Description": {"Hostname": "mgr1"},
|
2020-01-28 13:57:24 +00:00
|
|
|
"ManagerStatus": {"Addr": "10.0.0.1:2377"},
|
2021-11-22 14:45:49 +00:00
|
|
|
"Spec": {"Role": "manager"},
|
2020-01-28 13:57:24 +00:00
|
|
|
"Status": {"Addr": "0.0.0.0"}
|
2020-01-27 16:25:39 +00:00
|
|
|
}, {
|
2021-11-22 14:45:49 +00:00
|
|
|
"Description": {"Hostname": "mgr2"},
|
2020-01-28 13:57:24 +00:00
|
|
|
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
|
2021-11-22 14:45:49 +00:00
|
|
|
"Spec": {"Role": "manager"},
|
2020-01-27 16:25:39 +00:00
|
|
|
"Status": {"Addr": "10.0.0.2"}
|
2020-01-28 13:57:24 +00:00
|
|
|
}, {
|
2021-11-22 14:45:49 +00:00
|
|
|
"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"}
|
2020-01-27 16:25:39 +00:00
|
|
|
}
|
|
|
|
]
|
2021-02-22 10:22:35 +00:00
|
|
|
}
|