Skip to content

Commit c434a45

Browse files
committed
Merge branch 'feature/istio/bookinfo' into develop
2 parents 0cc5e69 + bb1cd9f commit c434a45

26 files changed

+88
-102
lines changed

istio/bookinfo/README.md

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,16 @@
11
# Istio Bookinfo
22

3-
- https://github.com/istio/istio/tree/master/samples/bookinfo
4-
- https://istio.io/latest/docs/examples/bookinfo/
5-
6-
## Deploy
3+
## Deploy Resources
74

85
```bash
6+
### using kubectl apply:
97
bash ./all.sh
108

11-
### kustomize
9+
### using kustomize:
1210
bash ./kustomize-install-bookinfo.sh
1311
```
1412

15-
## Traffic management
16-
17-
### Virtual services
18-
19-
- `bookinfo-vs-rewrite.yaml`
20-
- `bookinfo-vs.yaml`
21-
- `vs-all-v1.yaml`
22-
- `vs-all.yaml`
23-
- `vs-ratings-abort-fault.yaml`
24-
- `vs-ratings-delay-fault.yaml`
25-
- `vs-ratings-retry.yaml`
26-
- `vs-reviews-80-20.yaml`
27-
- `vs-reviews-match-v2.yaml`
28-
- `vs-reviews-match-v3.yaml`
29-
- `vs-reviews-retry.yaml`
30-
- `vs-reviews-v1.yaml`
31-
32-
### Destination rules
33-
34-
- `dr-all.yaml`
35-
- `dr-reviews-conn-pool.yaml`
36-
- `dr-reviews-least-conn.yaml`
37-
- `dr-reviews-outlier.yaml`
38-
- `dr-reviews-random.yaml`
39-
- `dr-reviews-round-robin.yaml`
40-
- `dr-reviews-timeout.yaml`
41-
42-
### Gateways
13+
## References
4314

44-
- `bookinfo-gw.yaml`
15+
- Bookinfo Sample - Istio GitHub: <https://github.com/istio/istio/tree/master/samples/bookinfo>
16+
- Bookinfo Application - Istio: <https://istio.io/latest/docs/examples/bookinfo/>

istio/bookinfo/all.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ kubectl apply --filename https://raw.githubusercontent.com/istio/istio/master/sa
2424
# -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"
2525

2626
### deploy networking
27-
kubectl apply --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/destination-rule-all.yaml
28-
kubectl apply --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/bookinfo-gateway.yaml
27+
# kubectl apply --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/destination-rule-all.yaml
28+
# kubectl apply --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/bookinfo-gateway.yaml
2929

3030
### check bookinfo gateway
3131
# kubectl get gateways
3232
# istioctl analyze
3333
# kubectl get services istio-ingressgateway --namespace istio-system
3434

35+
######################################################################
36+
3537
### delete
3638
# kubectl delete --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/networking/bookinfo-gateway.yaml
3739
# kubectl delete --filename https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml

istio/bookinfo/bookinfo.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
serviceAccountName: bookinfo-details
6262
containers:
6363
- name: details
64-
image: docker.io/istio/examples-bookinfo-details-v1:1.16.2
64+
image: docker.io/istio/examples-bookinfo-details-v1:1.20.2
6565
imagePullPolicy: IfNotPresent
6666
ports:
6767
- containerPort: 9080
@@ -112,7 +112,7 @@ spec:
112112
serviceAccountName: bookinfo-ratings
113113
containers:
114114
- name: ratings
115-
image: docker.io/istio/examples-bookinfo-ratings-v1:1.16.2
115+
image: docker.io/istio/examples-bookinfo-ratings-v1:1.20.2
116116
imagePullPolicy: IfNotPresent
117117
ports:
118118
- containerPort: 9080
@@ -163,7 +163,7 @@ spec:
163163
serviceAccountName: bookinfo-reviews
164164
containers:
165165
- name: reviews
166-
image: docker.io/istio/examples-bookinfo-reviews-v1:1.16.2
166+
image: docker.io/istio/examples-bookinfo-reviews-v1:1.20.2
167167
imagePullPolicy: IfNotPresent
168168
env:
169169
- name: LOG_DIR
@@ -203,7 +203,7 @@ spec:
203203
serviceAccountName: bookinfo-reviews
204204
containers:
205205
- name: reviews
206-
image: docker.io/istio/examples-bookinfo-reviews-v2:1.16.2
206+
image: docker.io/istio/examples-bookinfo-reviews-v2:1.20.2
207207
imagePullPolicy: IfNotPresent
208208
env:
209209
- name: LOG_DIR
@@ -243,7 +243,7 @@ spec:
243243
serviceAccountName: bookinfo-reviews
244244
containers:
245245
- name: reviews
246-
image: docker.io/istio/examples-bookinfo-reviews-v3:1.16.2
246+
image: docker.io/istio/examples-bookinfo-reviews-v3:1.20.2
247247
imagePullPolicy: IfNotPresent
248248
env:
249249
- name: LOG_DIR
@@ -300,14 +300,18 @@ spec:
300300
version: v1
301301
template:
302302
metadata:
303+
annotations:
304+
prometheus.io/scrape: "true"
305+
prometheus.io/port: "9080"
306+
prometheus.io/path: "/metrics"
303307
labels:
304308
app: productpage
305309
version: v1
306310
spec:
307311
serviceAccountName: bookinfo-productpage
308312
containers:
309313
- name: productpage
310-
image: docker.io/istio/examples-bookinfo-productpage-v1:1.16.2
314+
image: docker.io/istio/examples-bookinfo-productpage-v1:1.20.2
311315
imagePullPolicy: IfNotPresent
312316
ports:
313317
- containerPort: 9080

istio/bookinfo/kustomization.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: bookinfo
4-
commonLabels:
5-
owner: developer
6-
app: bookinfo
4+
labels:
5+
- includeSelectors: true
6+
pairs:
7+
app: bookinfo
8+
owner: developer
79
resources:
810
- https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml
911
# - https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo-details-v2.yaml

istio/bookinfo/dr-all.yaml renamed to istio/bookinfo/networking/dr-all.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
22
kind: DestinationRule
33
metadata:
44
name: productpage
@@ -9,7 +9,7 @@ spec:
99
labels:
1010
version: v1
1111
---
12-
apiVersion: networking.istio.io/v1alpha3
12+
apiVersion: networking.istio.io/v1
1313
kind: DestinationRule
1414
metadata:
1515
name: reviews
@@ -26,7 +26,7 @@ spec:
2626
labels:
2727
version: v3
2828
---
29-
apiVersion: networking.istio.io/v1alpha3
29+
apiVersion: networking.istio.io/v1
3030
kind: DestinationRule
3131
metadata:
3232
name: ratings
@@ -46,7 +46,7 @@ spec:
4646
labels:
4747
version: v2-mysql-vm
4848
---
49-
apiVersion: networking.istio.io/v1alpha3
49+
apiVersion: networking.istio.io/v1
5050
kind: DestinationRule
5151
metadata:
5252
name: details

istio/bookinfo/dr-details-lb.yaml renamed to istio/bookinfo/networking/dr-details-lb.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
---
2-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
32
kind: DestinationRule
43
metadata:
54
name: details

istio/bookinfo/dr-reviews-conn-pool.yaml renamed to istio/bookinfo/networking/dr-reviews-conn-pool.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
22
kind: DestinationRule
33
metadata:
44
name: reviews

istio/bookinfo/dr-reviews-least-conn.yaml renamed to istio/bookinfo/networking/dr-reviews-least-conn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
22
kind: DestinationRule
33
metadata:
44
name: reviews

istio/bookinfo/dr-reviews-outlier.yaml renamed to istio/bookinfo/networking/dr-reviews-outlier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
22
kind: DestinationRule
33
metadata:
44
name: reviews

istio/bookinfo/dr-reviews-random.yaml renamed to istio/bookinfo/networking/dr-reviews-random.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: networking.istio.io/v1
22
kind: DestinationRule
33
metadata:
44
name: reviews

0 commit comments

Comments
 (0)