Download OpenAPI specification:Download
The Routes API provides access to in-cluster routing configuration set up by the Signadot Operator.
GetWorkloadRoutingRules returns a set of WorkloadRoutingRules, keyed by baseline workload and routing key, each of which contains a destinationSandbox and mappings for each port. Each request query parameter represents a different filter on the set of returned routing rules.
In the response, for each returned WorkloadRoutingRule, the
destinationSandbox represents the override destination to which traffic
will be routed in the presence of the associated routing key
(https://www.signadot.com/docs/context-propagation). Message queue
consumers may use this field to discover if a message is intended for
their consumption.
mappings provide the association between baseline workload ports and
corresponding TCP addresses belonging to the destinationSandbox. The
mappings are used by the DevMesh sidecar
(https://www.signadot.com/docs/request-routing/devmesh) to implement
"Destination Routing", and may not be relevant to clients unless they are
implementing request routing in the application layer.
| baselineKind | string Example: baselineKind=Deployment Baseline workload kind (e.g. Deployment, ArgoRollout) |
| baselineNamespace | string Baseline workload namespace |
| baselineName | string Baseline workload name |
| routingKey | string The routing key associated with the request |
| destinationSandboxName | string The sandbox associated with the destination sandboxed workloads |
| enableVirtualWorkloads | bool |
{- "routingRules": [
- {
- "routingKey": "4835rlwxwbwyl",
- "baseline": {
- "kind": "Deployment",
- "namespace": "hotrod",
- "name": "route"
}, - "destinationSandbox": {
- "name": "sandbox-better-route"
}, - "mappings": [
- {
- "workloadPort": 8083,
- "destinations": [
- {
- "host": "sandbox-better-route-dep-route-95f507ad.hotrod.svc",
- "port": 8083
}
], - "trafficManager": {
- "nextDestinations": [
- {
- "host": "sandbox-better-route-dep-route-95f507ad.hotrod.svc",
- "port": 8083
}
], - "allTraffic": null
}
}
]
}
]
}