Renamed the VirtualService's destination name to host (#1342)

* Renamed the VirtualService's destination name to host

* Renamed the DestinationRule's name to host
This commit is contained in:
Yossi Mesika 2018-05-23 23:49:54 +03:00 committed by Shriram Rajagopalan
parent e8417d70cb
commit 5167f59392
7 changed files with 25 additions and 25 deletions

View File

@ -270,7 +270,7 @@ spec:
http:
- route:
- destination:
name: ratings
host: ratings
subset: v1
timeout: 10s
```
@ -290,7 +290,7 @@ spec:
http:
- route:
- destination:
name: ratings
host: ratings
subset: v1
retries:
attempts: 3
@ -495,7 +495,7 @@ kind: DestinationRule
metadata:
name: reviews
spec:
name: reviews
host: reviews
subsets:
- name: v1
labels:
@ -533,7 +533,7 @@ kind: DestinationRule
metadata:
name: reviews
spec:
name: reviews
host: reviews
subsets:
- name: v1
labels:
@ -653,7 +653,7 @@ spec:
http:
- route:
- destination:
name: ratings
host: ratings
subset: v1
timeout: 10s
```

View File

@ -770,7 +770,7 @@ spec:
- destination:
port:
number: 7777
name: reviews.qa.svc.cluster.local
host: reviews.qa.svc.cluster.local
- match:
uri:
prefix: /reviews/
@ -781,7 +781,7 @@ spec:
name: reviews.prod.svc.cluster.local
weight: 80
- destination:
name: reviews.qa.svc.cluster.local
host: reviews.qa.svc.cluster.local
weight: 20
</code></pre>
@ -806,7 +806,7 @@ spec:
sourceSubnet: &quot;172.17.16.0/24&quot;
route:
- destination:
name: mongo.prod.svc.cluster.local
host: mongo.prod.svc.cluster.local
</code></pre>
<table class="message-fields">

View File

@ -36,7 +36,7 @@ Let's set up a scenario to demonstrate the circuit-breaking capabilities of Isti
metadata:
name: httpbin
spec:
name: httpbin
host: httpbin
trafficPolicy:
connectionPool:
tcp:
@ -63,7 +63,7 @@ Let's set up a scenario to demonstrate the circuit-breaking capabilities of Isti
name: httpbin
...
spec:
name: httpbin
host: httpbin
trafficPolicy:
connectionPool:
http:

View File

@ -65,11 +65,11 @@ continue without any errors.
regex: ^(.*?;)?(user=jason)(;.*)?$
route:
- destination:
name: ratings
host: ratings
subset: v1
- route:
- destination:
name: ratings
host: ratings
subset: v1
```
@ -145,11 +145,11 @@ message.
regex: ^(.*?;)?(user=jason)(;.*)?$
route:
- destination:
name: ratings
host: ratings
subset: v1
- route:
- destination:
name: ratings
host: ratings
subset: v1
```

View File

@ -55,7 +55,7 @@ you'll need to use `replace` rather than `create` in the following command.
http:
- route:
- destination:
name: details
host: details
subset: v1
---
apiVersion: networking.istio.io/v1alpha3
@ -72,7 +72,7 @@ you'll need to use `replace` rather than `create` in the following command.
http:
- route:
- destination:
name: productpage
host: productpage
subset: v1
---
apiVersion: networking.istio.io/v1alpha3
@ -86,7 +86,7 @@ you'll need to use `replace` rather than `create` in the following command.
http:
- route:
- destination:
name: ratings
host: ratings
subset: v1
---
apiVersion: networking.istio.io/v1alpha3
@ -100,7 +100,7 @@ you'll need to use `replace` rather than `create` in the following command.
http:
- route:
- destination:
name: reviews
host: reviews
subset: v1
---
```
@ -143,11 +143,11 @@ you'll need to use `replace` rather than `create` in the following command.
regex: ^(.*?;)?(user=jason)(;.*)?$
route:
- destination:
name: reviews
host: reviews
subset: v2
- route:
- destination:
name: reviews
host: reviews
subset: v1
```

View File

@ -46,7 +46,7 @@ to the `ratings` service.
http:
- route:
- destination:
name: reviews
host: reviews
subset: v2
EOF
```
@ -69,7 +69,7 @@ to the `ratings` service.
fixedDelay: 2s
route:
- destination:
name: ratings
host: ratings
subset: v1
EOF
```
@ -93,7 +93,7 @@ to the `ratings` service.
http:
- route:
- destination:
name: reviews
host: reviews
subset: v2
timeout: 1s
EOF

View File

@ -56,12 +56,12 @@ two steps: 50%, 100%.
http:
- route:
- destination:
name: reviews
host: reviews
subset: v1
weight: 50
- route:
- destination:
name: reviews
host: reviews
subset: v3
weight: 50
```