...
1apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: emoji
5---
6apiVersion: v1
7kind: ServiceAccount
8metadata:
9 name: voting
10---
11apiVersion: v1
12kind: ServiceAccount
13metadata:
14 name: web
15---
16apiVersion: v1
17kind: Service
18metadata:
19 name: emoji-svc
20spec:
21 ports:
22 - name: grpc
23 port: 8080
24 targetPort: 8080
25 - name: prom
26 port: 8801
27 targetPort: 8801
28 selector:
29 app: emoji-svc
30---
31apiVersion: v1
32kind: Service
33metadata:
34 name: voting-svc
35spec:
36 ports:
37 - name: grpc
38 port: 8080
39 targetPort: 8080
40 - name: prom
41 port: 8801
42 targetPort: 8801
43 selector:
44 app: voting-svc
45---
46apiVersion: v1
47kind: Service
48metadata:
49 name: web-svc
50spec:
51 ports:
52 - name: http
53 port: 80
54 targetPort: 8080
55 selector:
56 app: web-svc
57 type: ClusterIP
58---
59apiVersion: apps/v1
60kind: Deployment
61metadata:
62 labels:
63 app.kubernetes.io/name: emoji
64 app.kubernetes.io/part-of: emojivoto
65 app.kubernetes.io/version: v10
66 name: emoji
67spec:
68 replicas: 1
69 selector:
70 matchLabels:
71 app: emoji-svc
72 version: v10
73 template:
74 metadata:
75 annotations:
76 linkerd.io/inject: enabled
77 labels:
78 app: emoji-svc
79 version: v10
80 spec:
81 containers:
82 - env:
83 - name: GRPC_PORT
84 value: "8080"
85 - name: PROM_PORT
86 value: "8801"
87 image: buoyantio/emojivoto-emoji-svc:v10
88 name: emoji-svc
89 ports:
90 - containerPort: 8080
91 name: grpc
92 - containerPort: 8801
93 name: prom
94 resources:
95 requests:
96 cpu: 100m
97 serviceAccountName: emoji
98---
99apiVersion: apps/v1
100kind: Deployment
101metadata:
102 labels:
103 app.kubernetes.io/name: voting
104 app.kubernetes.io/part-of: emojivoto
105 app.kubernetes.io/version: v10
106 name: voting
107spec:
108 replicas: 1
109 selector:
110 matchLabels:
111 app: voting-svc
112 version: v10
113 template:
114 metadata:
115 annotations:
116 linkerd.io/inject: enabled
117 labels:
118 app: voting-svc
119 version: v10
120 spec:
121 containers:
122 - env:
123 - name: GRPC_PORT
124 value: "8080"
125 - name: PROM_PORT
126 value: "8801"
127 image: buoyantio/emojivoto-voting-svc:v10
128 name: voting-svc
129 ports:
130 - containerPort: 8080
131 name: grpc
132 - containerPort: 8801
133 name: prom
134 resources:
135 requests:
136 cpu: 100m
137 serviceAccountName: voting
138---
139apiVersion: apps/v1
140kind: Deployment
141metadata:
142 labels:
143 app.kubernetes.io/name: web
144 app.kubernetes.io/part-of: emojivoto
145 app.kubernetes.io/version: v10
146 name: web
147spec:
148 replicas: 1
149 selector:
150 matchLabels:
151 app: web-svc
152 version: v10
153 template:
154 metadata:
155 annotations:
156 linkerd.io/inject: enabled
157 labels:
158 app: web-svc
159 version: v10
160 spec:
161 containers:
162 - env:
163 - name: WEB_PORT
164 value: "8080"
165 - name: EMOJISVC_HOST
166 value: emoji-svc:8080
167 - name: VOTINGSVC_HOST
168 value: voting-svc:8080
169 - name: INDEX_BUNDLE
170 value: dist/index_bundle.js
171 image: buoyantio/emojivoto-web:v10
172 name: web-svc
173 ports:
174 - containerPort: 8080
175 name: http
176 resources:
177 requests:
178 cpu: 100m
179 serviceAccountName: web
View as plain text