Istioctl for the pod is not showing the timeout setting on the virtual service configuration

We have istio 1.2.2 and we have virtual service with the timeout setting. “kubectl get vs testvs” show the timeout setting as 300s.

spec:
gateways:

  • ns1-gateway
    hosts:
  • ‘*’
    http:
  • match:
    • uri:
      prefix: /testvs
      retries:
      attempts: 3
      perTryTimeout: 10s
      route:
    • destination:
      host: testvs.ns1.svc.cluster.local
      port:
      number: 8080
      timeout: 300s

but istioctl proxy-config route testvs-68bf8d98f6-sf29j -o json showing default timeout which is 0s.

“route”: {
“cluster”: “outbound|80||testsvc.ns1.svc.cluster.local”,
“timeout”: “0s”,
“retryPolicy”: {
“retryOn”: “connect-failure,refused-stream,unavailable,cancelled,resource-exhausted,retriable-status-codes”,
“numRetries”: 2,
“retryHostPredicate”: [
{
“name”: “envoy.retry_host_predicates.previous_hosts”
}
],
“hostSelectionRetryMaxAttempts”: “5”,
“retriableStatusCodes”: [
503
]
},
“maxGrpcTimeout”: “0s”
}

I think the issue is if we have

gateways:

  • ns1-gateway
    hosts:
  • ‘*’

in spec it is not applying. Can anyone confirm if this is the behavior by design?