You can use the istio module in Deckhouse Kubernetes Platform to route HTTP and TCP requests.
The main resource for managing routing is VirtualService from Istio, which allows you to configure routing for HTTP or TCP requests.
VirtualService resource
For more details on VirtualService, refer to the Istio documentation.
Using VirtualService is optional. Standard Services will continue to work if their functionality is sufficient. With this resource, you can configure request routing:
- Arguments for making routing decisions:
hosturiweight
- Parameters of the final destinations:
- New
host - New
uri - If the
hostis defined via a DestinationRule, requests can be routed to subsets - Timeout and retry settings
- New
For destination in Istio to work correctly, it must be specified explicitly. If you are using an external API, specify it with a ServiceEntry.