Skip to content

Commit 396ed20

Browse files
authored
Update README.md
1 parent 7f6fcfe commit 396ed20

File tree

1 file changed

+65
-5
lines changed

1 file changed

+65
-5
lines changed

lab-3/README.md

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,71 @@ Docker Desktop users please use `http://localhost/productpage` to access product
9393

9494
Before we start playing with Istio's traffic management capabilities we need to define the available versions of the deployed services. They are called subsets, in destination rules.
9595

96-
Using Meshery, navigate to the Istio management page, and:
97-
98-
1. Enter `default` in the `Namespace` field.
99-
1. Click the (+) icon on the `Configure` card and select `Default BookInfo destination rules (defines subsets)` from the list.
100-
96+
Using Meshery, navigate to the Custom yaml page, and apply the below to create the subsets for BookInfo:
97+
98+
```sh
99+
apiVersion: networking.istio.io/v1alpha3
100+
kind: DestinationRule
101+
metadata:
102+
name: productpage
103+
spec:
104+
host: productpage
105+
subsets:
106+
- name: v1
107+
labels:
108+
version: v1
109+
---
110+
apiVersion: networking.istio.io/v1alpha3
111+
kind: DestinationRule
112+
metadata:
113+
name: reviews
114+
spec:
115+
host: reviews
116+
subsets:
117+
- name: v1
118+
labels:
119+
version: v1
120+
- name: v2
121+
labels:
122+
version: v2
123+
- name: v3
124+
labels:
125+
version: v3
126+
---
127+
apiVersion: networking.istio.io/v1alpha3
128+
kind: DestinationRule
129+
metadata:
130+
name: ratings
131+
spec:
132+
host: ratings
133+
subsets:
134+
- name: v1
135+
labels:
136+
version: v1
137+
- name: v2
138+
labels:
139+
version: v2
140+
- name: v2-mysql
141+
labels:
142+
version: v2-mysql
143+
- name: v2-mysql-vm
144+
labels:
145+
version: v2-mysql-vm
146+
---
147+
apiVersion: networking.istio.io/v1alpha3
148+
kind: DestinationRule
149+
metadata:
150+
name: details
151+
spec:
152+
host: details
153+
subsets:
154+
- name: v1
155+
labels:
156+
version: v1
157+
- name: v2
158+
labels:
159+
version: v2
160+
```
101161
This creates destination rules for each of the BookInfo services and defines version subsets
102162

103163
<small>Manual step for can be found [here](#appendix)</small>

0 commit comments

Comments
 (0)