mirror of
https://github.com/traefik/mesh.git
synced 2026-06-01 18:37:57 +00:00
111 lines
2.3 KiB
JSON
111 lines
2.3 KiB
JSON
{
|
|
"services": {
|
|
"svc-b@my-ns": {
|
|
"name": "svc-b",
|
|
"namespace": "my-ns",
|
|
"selector": {},
|
|
"annotations": {},
|
|
"ports": [
|
|
{
|
|
"name": "port-8080",
|
|
"protocol": "TCP",
|
|
"port": 8080,
|
|
"targetPort": 8080
|
|
},
|
|
{
|
|
"name": "port-8081",
|
|
"protocol": "TCP",
|
|
"port": 8081,
|
|
"targetPort": "web"
|
|
}
|
|
],
|
|
"clusterIp": "10.10.14.1",
|
|
"pods": [
|
|
"pod-b@my-ns"
|
|
],
|
|
"trafficTargets": [
|
|
"svc-b@my-ns:tt@my-ns"
|
|
]
|
|
}
|
|
},
|
|
"pods": {
|
|
"pod-a@my-ns": {
|
|
"name": "pod-a",
|
|
"namespace": "my-ns",
|
|
"serviceAccount": "client",
|
|
"ip": "10.10.2.1"
|
|
},
|
|
"pod-b@my-ns": {
|
|
"name": "pod-b",
|
|
"namespace": "my-ns",
|
|
"serviceAccount": "server",
|
|
"ip": "10.10.3.1",
|
|
"containerPorts": [
|
|
{
|
|
"name": "web",
|
|
"protocol": "TCP",
|
|
"containerPort": 8081
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"serviceTrafficTargets": {
|
|
"svc-b@my-ns:tt@my-ns": {
|
|
"service": "svc-b@my-ns",
|
|
"name": "tt",
|
|
"namespace": "my-ns",
|
|
"sources": [
|
|
{
|
|
"serviceAccount": "client",
|
|
"namespace": "my-ns",
|
|
"pods": [
|
|
"pod-a@my-ns"
|
|
]
|
|
}
|
|
],
|
|
"destination": {
|
|
"serviceAccount": "server",
|
|
"namespace": "my-ns",
|
|
"ports": [
|
|
{
|
|
"name": "port-8080",
|
|
"protocol": "TCP",
|
|
"port": 8080,
|
|
"targetPort": 8080
|
|
},
|
|
{
|
|
"name": "port-8081",
|
|
"protocol": "TCP",
|
|
"port": 8081,
|
|
"targetPort": "web"
|
|
}
|
|
],
|
|
"pods": [
|
|
"pod-b@my-ns"
|
|
]
|
|
},
|
|
"rules": [
|
|
{
|
|
"httpRouteGroup": {
|
|
"kind": "HTTPRouteGroup",
|
|
"apiVersion": "specs.smi-spec.io/v1alpha3",
|
|
"metadata": {
|
|
"name": "app-route-group",
|
|
"namespace": "my-ns"
|
|
},
|
|
"spec": {
|
|
"matches": [
|
|
{
|
|
"name": "all",
|
|
"methods": ["*"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"trafficSplits": {}
|
|
}
|