-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathftgo-api-gateway.yml
71 lines (70 loc) · 1.63 KB
/
ftgo-api-gateway.yml
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
---
apiVersion: v1
kind: Service
metadata:
name: ftgo-api-gateway
labels:
name: ftgo-api-gateway
application: ftgo
spec:
ports:
- port: 80
targetPort: 8080
selector:
svc: ftgo-api-gateway
# type: LoadBalancer
# loadBalancerSourceRanges:
# - 88.128.82.195/32
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-api-gateway
labels:
application: ftgo
spec:
replicas: 1
selector:
matchLabels:
app: ftgo-api-gateway
svc: ftgo-api-gateway
application: ftgo
strategy:
rollingUpdate:
maxUnavailable: 0
template:
metadata:
labels:
app: ftgo-api-gateway
svc: ftgo-api-gateway
application: ftgo
spec:
containers:
- name: ftgo-api-gateway
image: msapatterns/ftgo-api-gateway:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: httpport
env:
- name: JAVA_OPTS
value: "-Dsun.net.inetaddr.ttl=30"
- name: ORDER_DESTINATIONS_ORDERSERVICEURL
value: http://ftgo-order-service:8080
- name: ORDER_DESTINATIONS_ORDERHISTORYSERVICEURL
value: http://ftgo-order-history-service:8080
- name: CONSUMER_DESTINATIONS_CONSUMERSERVICEURL
value: http://ftgo-consumer-service:8080
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 30
periodSeconds: 20
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 30
periodSeconds: 20
---