-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathftgo-accounting-service.yml
75 lines (75 loc) · 1.92 KB
/
ftgo-accounting-service.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
72
73
74
75
apiVersion: v1
kind: Service
metadata:
name: ftgo-accounting-service
spec:
ports:
- port: 8080
targetPort: 8080
selector:
svc: ftgo-accounting-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-accounting-service
labels:
application: ftgo
spec:
replicas: 1
selector:
matchLabels:
app: ftgo-accounting-service
svc: ftgo-accounting-service
application: ftgo
strategy:
rollingUpdate:
maxUnavailable: 0
template:
metadata:
labels:
app: ftgo-accounting-service
svc: ftgo-accounting-service
application: ftgo
spec:
containers:
- name: ftgo-accounting-service
image: msapatterns/ftgo-accounting-service:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: httpport
env:
- name: JAVA_OPTS
value: "-Dsun.net.inetaddr.ttl=30"
- name: SPRING_DATASOURCE_URL
value: jdbc:mysql://ftgo-mysql/eventuate
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: ftgo-db-secret
key: username
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: ftgo-db-secret
key: password
- name: SPRING_DATASOURCE_DRIVER_CLASS_NAME
value: com.mysql.jdbc.Driver
- name: EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS
value: ftgo-kafka:9092
- name: EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING
value: ftgo-zookeeper:2181
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
---