...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: opaque-pod
5spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: opaque-pod
10 template:
11 metadata:
12 labels:
13 app: opaque-pod
14 annotations:
15 linkerd.io/inject: "enabled"
16 config.linkerd.io/opaque-ports: "8080"
17 spec:
18 containers:
19 - name: app
20 image: buoyantio/bb:v0.0.6
21 args:
22 - terminus
23 - "--h1-server-port=8080"
24 - "--response-text=opaque-pod"
25 ports:
26 - containerPort: 8080
27---
28apiVersion: v1
29kind: Service
30metadata:
31 name: svc-opaque-pod
32 labels:
33 app: svc-opaque-pod
34spec:
35 selector:
36 app: opaque-pod
37 clusterIP: None
38 ports:
39 - name: http
40 port: 8080
41 targetPort: 8080
42---
43apiVersion: apps/v1
44kind: Deployment
45metadata:
46 name: opaque-service
47spec:
48 replicas: 1
49 selector:
50 matchLabels:
51 app: opaque-service
52 template:
53 metadata:
54 annotations:
55 linkerd.io/inject: "enabled"
56 labels:
57 app: opaque-service
58 spec:
59 containers:
60 - name: app
61 image: buoyantio/bb:v0.0.6
62 args:
63 - terminus
64 - "--h1-server-port=8080"
65 - "--response-text=opaque-service"
66 ports:
67 - containerPort: 8080
68---
69apiVersion: v1
70kind: Service
71metadata:
72 name: svc-opaque-service
73 labels:
74 app: svc-opaque-service
75 annotations:
76 config.linkerd.io/opaque-ports: "8080"
77spec:
78 selector:
79 app: opaque-service
80 ports:
81 - name: http
82 port: 8080
83 targetPort: 8080
84---
85apiVersion: apps/v1
86kind: Deployment
87metadata:
88 name: opaque-unmeshed-svc
89spec:
90 replicas: 1
91 selector:
92 matchLabels:
93 app: opaque-unmeshed-svc
94 template:
95 metadata:
96 annotations:
97 linkerd.io/inject: disabled
98 labels:
99 app: opaque-unmeshed-svc
100 spec:
101 containers:
102 - name: app
103 image: buoyantio/bb:v0.0.6
104 args:
105 - terminus
106 - "--h1-server-port=8080"
107 - "--response-text=opaque-unmeshed-svc"
108 ports:
109 - containerPort: 8080
110---
111apiVersion: v1
112kind: Service
113metadata:
114 name: svc-opaque-unmeshed
115 labels:
116 app: svc-opaque-unmeshed
117 annotations:
118 config.linkerd.io/opaque-ports: "8080"
119spec:
120 selector:
121 app: opaque-unmeshed-svc
122 ports:
123 - name: http
124 port: 8080
125 targetPort: 8080
View as plain text