-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer-service.yml
executable file
·80 lines (78 loc) · 1.68 KB
/
customer-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
76
77
78
79
80
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: customer
name: customer
namespace: REPLACE_NAMESPACE
spec:
replicas: 1
selector:
matchLabels:
run: customer
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
run: customer
spec:
containers:
- image: REPLACE-IMAGE-NAME
name: customer
ports:
- containerPort: 8080
resources: {}
imagePullPolicy: Always
env:
- name: MONGO_DATABASE
valueFrom:
configMapKeyRef:
name: mongodb
key: database-name
- name: MONGO_USERNAME
valueFrom:
secretKeyRef:
name: mongodb
key: database-user
- name: MONGO_PASSWORD
valueFrom:
secretKeyRef:
name: mongodb
key: database-password
- name: ELASTIC_APM_SERVICE_NAME
valueFrom:
configMapKeyRef:
name: apmserver
key: service-name
- name: ELASTIC_APM_APPLICATION_PACKAGES
valueFrom:
secretKeyRef:
name: apmserver
key: application-pack
- name: ELASTIC_APM_SERVER_URLS
valueFrom:
secretKeyRef:
name: apmserver
key: server-urls
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
run: customer
name: customer
namespace: REPLACE_NAMESPACE
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
run: customer
type: LoadBalancer
status:
loadBalancer: {}