-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-deployment.yaml
102 lines (101 loc) · 2.18 KB
/
app-deployment.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
apiVersion: apps/v1
kind: Deployment
metadata:
name: chat
spec:
replicas: 4 # tells deployment to run 1 pods matching the template
selector:
matchLabels:
component: chat
template: # create pods using pod definition in this template
metadata:
labels:
component: chat
spec:
containers:
- name: chat
image: mwong775/codehouse-team-four_chat:latest
ports:
- containerPort: 5000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jobs
spec:
replicas: 2 # tells deployment to run 1 pods matching the template
selector:
matchLabels:
component: jobs
template: # create pods using pod definition in this template
metadata:
labels:
component: jobs
spec:
containers:
- name: jobs
image: mwong775/codehouse-team-four_jobs:latest
ports:
- containerPort: 5001
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mapsearch
spec:
replicas: 1 # tells deployment to run 1 pods matching the template
selector:
matchLabels:
component: mapsearch
template: # create pods using pod definition in this template
metadata:
labels:
component: mapsearch
spec:
containers:
- name: mapsearch
image: mwong775/codehouse-team-four_mapsearch:latest
ports:
- containerPort: 5002
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: talent
spec:
replicas: 2 # tells deployment to run 1 pods matching the template
selector:
matchLabels:
component: talent
template: # create pods using pod definition in this template
metadata:
labels:
component: talent
spec:
containers:
- name: talent
image: mwong775/codehouse-team-four_talent:latest
ports:
- containerPort: 5003
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: react
spec:
replicas: 2
selector:
matchLabels:
app: react
tier: ui
template:
metadata:
labels:
app: react
tier: ui
spec:
containers:
- name: react
image: mwong775/codehouse-team-four_reactapp:latest
ports:
- containerPort: 80