Adjust format for request-timeouts.md. (#1430)

This commit is contained in:
Guang Ya Liu 2018-06-04 21:09:02 +08:00 committed by Martin Taillefer
parent b989221c61
commit 11ee05305d
1 changed files with 14 additions and 14 deletions

View File

@ -79,20 +79,20 @@ to the `ratings` service.
1. Now add a 1 second request timeout for calls to the `reviews` service
```bash
cat <<EOF | istioctl replace -f -
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v2
timeout: 1s
cat <<EOF | istioctl replace -f -
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v2
timeout: 1s
EOF
```