DestinationRule and VirtualService


I am confused on one thing. What is the purpose of destinationrule and virtualservice ? why they have been created as two different things, instead of combing as one ?

I think the virtualservice can be thought of as a routing primarily. The destination rule sets policies related to the endpoint such as timeouts and things like. Gateway Definition <–VirtualService–> Kubernetes Service

The Destination Rule applies policies to the endpoint and how it is access ed as opposed to routing to an endpoint.