-
Notifications
You must be signed in to change notification settings - Fork 0
/
order-service-deploy.yaml
64 lines (64 loc) · 1.73 KB
/
order-service-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
60
61
62
63
64
apiVersion: apps/v1
kind: Deployment
metadata:
name: order-service-deploy
spec:
replicas: 1
selector:
matchLabels:
app: order-service
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: order-service
spec:
containers:
- name: order-service-container
image: shaikrasheed99/order-service
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8081
readinessProbe:
httpGet:
path: /actuator/health
port: 8081
livenessProbe:
httpGet:
path: /actuator/health
port: 8081
env:
- name: SPRING_PROFILES_ACTIVE
valueFrom:
configMapKeyRef:
name: configs
key: SPRING_PROFILES_ACTIVE
- name: DB_HOST
value: "order-service-db-svc"
- name: DB_PORT
value: "5432"
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: db-secrets
key: POSTGRES_USER
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-secrets
key: POSTGRES_PASSWORD
- name: INVENTORY_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: configs
key: INVENTORY_SERVICE_HOST
- name: INVENTORY_SERVICE_PORT
value: "8084"
- name: KAFKA_BROKER_URL
valueFrom:
configMapKeyRef:
name: configs
key: KAFKA_BROKER_URL