...
1# This YAML is used to deploy version 11 of the emojivoto Voting service which
2# fixes a bug in the service.
3#
4# This is downloaded when doing Chapter 6 of the CNCF service mesh labs which
5# walks the user through traffic splitting using the
6# Service Mesh Interface (SMI) TrafficSplit object.
7---
8apiVersion: v1
9kind: ServiceAccount
10metadata:
11 name: voting
12 namespace: emojivoto
13---
14apiVersion: v1
15kind: Service
16metadata:
17 name: voting-svc-v11
18 namespace: emojivoto
19spec:
20 ports:
21 - name: grpc
22 port: 8080
23 targetPort: 8080
24 - name: prom
25 port: 8801
26 targetPort: 8801
27 selector:
28 app: voting-svc
29 version: v11
30---
31apiVersion: apps/v1
32kind: Deployment
33metadata:
34 labels:
35 app.kubernetes.io/name: voting
36 app.kubernetes.io/part-of: emojivoto
37 app.kubernetes.io/version: v11
38 name: voting-v11
39 namespace: emojivoto
40spec:
41 replicas: 1
42 selector:
43 matchLabels:
44 app: voting-svc
45 version: v11
46 template:
47 metadata:
48 labels:
49 app: voting-svc
50 version: v11
51 spec:
52 containers:
53 - env:
54 - name: GRPC_PORT
55 value: "8080"
56 - name: PROM_PORT
57 value: "8801"
58 image: datawire/emojivoto-voting-svc:v11
59 name: voting-svc
60 ports:
61 - containerPort: 8080
62 name: grpc
63 - containerPort: 8801
64 name: prom
65 resources:
66 requests:
67 cpu: 100m
68 serviceAccountName: voting
View as plain text