mirror of https://github.com/istio/istio.io.git
Adjust format for request-timeouts.md. (#1430)
This commit is contained in:
parent
b989221c61
commit
11ee05305d
|
@ -79,20 +79,20 @@ to the `ratings` service.
|
||||||
1. Now add a 1 second request timeout for calls to the `reviews` service
|
1. Now add a 1 second request timeout for calls to the `reviews` service
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat <<EOF | istioctl replace -f -
|
cat <<EOF | istioctl replace -f -
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
kind: VirtualService
|
kind: VirtualService
|
||||||
metadata:
|
metadata:
|
||||||
name: reviews
|
name: reviews
|
||||||
spec:
|
spec:
|
||||||
hosts:
|
hosts:
|
||||||
- reviews
|
- reviews
|
||||||
http:
|
http:
|
||||||
- route:
|
- route:
|
||||||
- destination:
|
- destination:
|
||||||
host: reviews
|
host: reviews
|
||||||
subset: v2
|
subset: v2
|
||||||
timeout: 1s
|
timeout: 1s
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue