Configure ServiceRoute for (multi-port, multi-protocol) services
This how-to document will show you how to configure routes to services exposing multiple
ports through a single ServiceRoute
config.
Scenario
Consider a backend service (named tcp-echo
) which exposes two ports, port 9000
and port 9001
over TCP. The service
has two versions v1
and v2
and traffic splitting needs to be achieved between these two versions for both the
ports. In order to achieve this, a ServiceRoute
with port settings for both the ports needs to be configured.
Deploy tcp-echo
service
You will need to deploy the tcp-echo
application from the Istio's samples directory into the echo namespace.
Install these manifests to deploy
the tcp-echo
application.