Where do we apply the virtual services and destination rule logic

Hi,

Suppose we have to configure a timeout when calling ‘Review’ service and we use a virtual service to do so:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
spec:
hosts:

  • reviews
    http:
  • route:
    • destination:
      host: reviews
      subset: v2
      timeout: 0.5s

At which side car level (sidecar of the ‘Reviews’ service or sidecar of the client who calls that service) these timeout policies are applied.

I have the same question for Destination Rules. In the following CB config, are we applying the CB logic at the httpbin sidecar level?

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: httpbin

spec:
host: httpbin
trafficPolicy:
connectionPool:
http:
http1MaxPendingRequests: 1
maxRequestsPerConnection: 1
tcp:
maxConnections: 1
outlierDetection:
baseEjectionTime: 180.000s
consecutiveErrors: 1
interval: 1.000s
maxEjectionPercent: 100