-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeployment-demo.yaml
144 lines (144 loc) · 2.77 KB
/
deployment-demo.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-customer-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-customer-api
replicas: 1
template:
metadata:
labels:
app: kdemo-customer-api
spec:
containers:
- name: kdemo-customer-api
image: kdemo-customer-api:latest
imagePullPolicy: Always
ports:
- containerPort: 8081
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-catalog-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-catalog-api
replicas: 1
template:
metadata:
labels:
app: kdemo-catalog-api
spec:
containers:
- name: kdemo-catalog-api
image: kdemo-catalog-api:latest
imagePullPolicy: Always
ports:
- containerPort: 8082
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-orders-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-orders-api
replicas: 1
template:
metadata:
labels:
app: kdemo-orders-api
spec:
containers:
- name: kdemo-orders-api
image: kdemo-orders-api:latest
imagePullPolicy: Always
ports:
- containerPort: 8083
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-orders--service-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-orders-service
replicas: 1
template:
metadata:
labels:
app: kdemo-orders-service
spec:
containers:
- name: kdemo-orders-service
image: kdemo-orders-service:latest
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-db-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-db
replicas: 1
template:
metadata:
labels:
app: kdemo-db
spec:
containers:
- name: kdemo-db
image: kdemo-db
imagePullPolicy: Always
ports:
- containerPort: 5432
env:
- name: POSTGRES_USER
value: admin
- name: POSTGRES_PASSWORD
value: admin!@#
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kdemo-rabbitmq-deployment
labels:
app: kdemo
spec:
selector:
matchLabels:
app: kdemo-rabbitmq
replicas: 1
template:
metadata:
labels:
app: kdemo-rabbitmq
spec:
containers:
- name: kdemo-rabbitmq
image: rabbitmq:3-management
ports:
- containerPort: 5672
env:
- name: RABBITMQ_DEFAULT_USER
value: admin
- name: RABBITMQ_DEFAULT_PASS
value: admin