Skip to content

Commit e368968

Browse files
authored
Merge pull request kmesh-net#1248 from weli-l/ads/bookinfo
add sample yamls for useguide
2 parents 1074e65 + f243598 commit e368968

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: tcp-echo
5+
labels:
6+
app: tcp-echo
7+
service: tcp-echo
8+
spec:
9+
ports:
10+
- name: tcp
11+
port: 9000
12+
- name: tcp-other
13+
port: 9001
14+
# Port 9002 is omitted intentionally for testing the pass through filter chain.
15+
selector:
16+
app: tcp-echo
17+
---
18+
apiVersion: apps/v1
19+
kind: Deployment
20+
metadata:
21+
name: tcp-echo-v1
22+
labels:
23+
app: tcp-echo
24+
version: v1
25+
spec:
26+
replicas: 1
27+
selector:
28+
matchLabels:
29+
app: tcp-echo
30+
version: v1
31+
template:
32+
metadata:
33+
labels:
34+
app: tcp-echo
35+
version: v1
36+
spec:
37+
containers:
38+
- name: tcp-echo
39+
image: docker.io/istio/tcp-echo-server:1.3
40+
imagePullPolicy: IfNotPresent
41+
args: [ "9000,9001,9002", "one" ]
42+
ports:
43+
- containerPort: 9000
44+
- containerPort: 9001
45+
---
46+
apiVersion: apps/v1
47+
kind: Deployment
48+
metadata:
49+
name: tcp-echo-v2
50+
labels:
51+
app: tcp-echo
52+
version: v2
53+
spec:
54+
replicas: 1
55+
selector:
56+
matchLabels:
57+
app: tcp-echo
58+
version: v2
59+
template:
60+
metadata:
61+
labels:
62+
app: tcp-echo
63+
version: v2
64+
spec:
65+
containers:
66+
- name: tcp-echo
67+
image: docker.io/istio/tcp-echo-server:1.3
68+
imagePullPolicy: IfNotPresent
69+
args: [ "9000,9001,9002", "two" ]
70+
ports:
71+
- containerPort: 9000
72+
- containerPort: 9001
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: networking.istio.io/v1alpha3
2+
kind: VirtualService
3+
metadata:
4+
name: tcp-echo
5+
spec:
6+
hosts:
7+
- tcp-echo
8+
tcp:
9+
- route:
10+
- destination:
11+
host: tcp-echo
12+
port:
13+
number: 9000
14+
subset: v1
15+
weight: 25
16+
- destination:
17+
host: tcp-echo
18+
port:
19+
number: 9000
20+
subset: v2
21+
weight: 75

0 commit comments

Comments
 (0)