You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lab-3/README.md
+65-5Lines changed: 65 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -93,11 +93,71 @@ Docker Desktop users please use `http://localhost/productpage` to access product
93
93
94
94
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.
95
95
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
+
```
101
161
This creates destination rules for each of the BookInfo services and defines version subsets
102
162
103
163
<small>Manual step for can be found [here](#appendix)</small>
0 commit comments