-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-gateway-deploy.yaml
59 lines (59 loc) · 1.61 KB
/
api-gateway-deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-gateway-deploy
spec:
replicas: 1
selector:
matchLabels:
app: api-gateway
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: api-gateway
spec:
containers:
- name: api-gateway-container
image: shaikrasheed99/api-gateway
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
env:
- name: SPRING_PROFILES_ACTIVE
valueFrom:
configMapKeyRef:
name: configs
key: SPRING_PROFILES_ACTIVE
- name: ORDER_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: configs
key: ORDER_SERVICE_HOST
- name: ORDER_SERVICE_PORT
value: "8081"
- name: INVENTORY_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: configs
key: INVENTORY_SERVICE_HOST
- name: INVENTORY_SERVICE_PORT
value: "8084"
- name: NOTIFICATION_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: configs
key: NOTIFICATION_SERVICE_HOST
- name: NOTIFICATION_SERVICE_PORT
value: "8083"