mirror of https://github.com/istio/istio.io.git
Update TCP docs to address issues (#684)
This commit is contained in:
parent
5ba66d20c0
commit
fc62790e8d
|
|
@ -86,8 +86,8 @@ as the example application throughout this task.
|
||||||
- source_service
|
- source_service
|
||||||
- source_version
|
- source_version
|
||||||
- destination_version
|
- destination_version
|
||||||
- name: mongo_sent_bytes # Prometheus metric name
|
- name: mongo_received_bytes # Prometheus metric name
|
||||||
instance_name: mongosentbytes.metric.default # Mixer instance name (fully-qualified)
|
instance_name: mongoreceivedbytes.metric.default # Mixer instance name (fully-qualified)
|
||||||
kind: COUNTER
|
kind: COUNTER
|
||||||
label_names:
|
label_names:
|
||||||
- source_service
|
- source_service
|
||||||
|
|
@ -102,7 +102,7 @@ as the example application throughout this task.
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
match: context.protocol == "tcp"
|
match: context.protocol == "tcp"
|
||||||
&& destination.service = "mongodb.default.svc.cluster.local"
|
&& destination.service == "mongodb.default.svc.cluster.local"
|
||||||
actions:
|
actions:
|
||||||
- handler: mongohandler.prometheus
|
- handler: mongohandler.prometheus
|
||||||
instances:
|
instances:
|
||||||
|
|
@ -126,7 +126,16 @@ as the example application throughout this task.
|
||||||
|
|
||||||
1. Setup BookInfo to use MongoDB.
|
1. Setup BookInfo to use MongoDB.
|
||||||
|
|
||||||
1. Install `v2` of the `ratings` service:
|
1. Install `v2` of the `ratings` service.
|
||||||
|
|
||||||
|
If you are using a cluster with automatic sidecar injection enabled,
|
||||||
|
simply deploy the services using `kubectl`:
|
||||||
|
|
||||||
|
```
|
||||||
|
kubectl apply -f samples/bookinfo/kube/bookinfo-ratings-v2.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are using manual sidecar injection, use the following command instead:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo-ratings-v2.yaml)
|
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo-ratings-v2.yaml)
|
||||||
|
|
@ -140,6 +149,15 @@ as the example application throughout this task.
|
||||||
|
|
||||||
1. Install the `mongodb` service:
|
1. Install the `mongodb` service:
|
||||||
|
|
||||||
|
If you are using a cluster with automatic sidecar injection enabled,
|
||||||
|
simply deploy the services using `kubectl`:
|
||||||
|
|
||||||
|
```
|
||||||
|
kubectl apply -f samples/bookinfo/kube/bookinfo-db.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are using manual sidecar injection, use the following command instead:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo-db.yaml)
|
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo-db.yaml)
|
||||||
```
|
```
|
||||||
|
|
@ -154,14 +172,14 @@ as the example application throughout this task.
|
||||||
1. Add routing rules to send traffic to `v2` of the `ratings` service:
|
1. Add routing rules to send traffic to `v2` of the `ratings` service:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f samples/bookinfo/kube/route-rule-ratings-db.yaml
|
istioctl create -f samples/bookinfo/kube/route-rule-ratings-db.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Expected output:
|
Expected output:
|
||||||
|
|
||||||
```
|
```
|
||||||
routerule "ratings-test-v2" created
|
Created config route-rule//ratings-test-v2 at revision 7216403
|
||||||
routerule "reviews-test-ratings-v2" created
|
Created config route-rule//reviews-test-ratings-v2 at revision 7216404
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Send traffic to the sample application.
|
1. Send traffic to the sample application.
|
||||||
|
|
@ -232,6 +250,12 @@ protocols within policies.
|
||||||
istioctl delete -f tcp_telemetry.yaml
|
istioctl delete -f tcp_telemetry.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Remove the `port-forward` process:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
killall kubectl
|
||||||
|
```
|
||||||
|
|
||||||
* If you are not planning to explore any follow-on tasks, refer to the
|
* If you are not planning to explore any follow-on tasks, refer to the
|
||||||
[BookInfo cleanup]({{home}}/docs/guides/bookinfo.html#cleanup) instructions
|
[BookInfo cleanup]({{home}}/docs/guides/bookinfo.html#cleanup) instructions
|
||||||
to shutdown the application.
|
to shutdown the application.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue