forked from stewartshea/demo-sandbox-acme-fitness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrontend-total.yaml
68 lines (68 loc) · 1.51 KB
/
frontend-total.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
app: acmefit
service: frontend
spec:
ports:
- name: http-frontend
protocol: TCP
port: 80
targetPort: 3000
selector:
app: acmefit
service: frontend
type: ClusterIP
---
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: frontend
labels:
app: acmefit
service: frontend
spec:
selector:
matchLabels:
app: acmefit
service: frontend
strategy:
type: RollingUpdate
replicas: 1
template:
metadata:
labels:
app: acmefit
service: frontend
spec:
containers:
- image: gcr.io/vmwarecloudadvocacy/acmeshop-front-end:latest
name: frontend
env:
- name: FRONTEND_PORT
value: '3000'
- name: USERS_HOST
value: 'users'
- name: CATALOG_HOST
value: 'catalog'
- name: ORDER_HOST
value: 'order'
- name: CART_HOST
value: 'cart'
- name: USERS_PORT
value: '8083'
- name: CATALOG_PORT
value: '8082'
- name: CART_PORT
value: '5000'
- name: ORDER_PORT
value: '6000'
- name: JAEGER_AGENT_HOST
value: 'jaeger-agent'
- name: JAEGER_AGENT_PORT
value: '6832'
ports:
- containerPort: 3000
name: frontend