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