-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
65 lines (65 loc) · 1.7 KB
/
deployment.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
65
apiVersion: v1
kind: Service
metadata:
name: event-audit-service
labels:
app: event-audit-service
spec:
ports:
- port: 3030
name: http
protocol: TCP
targetPort: 3030
selector:
app: event-audit-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: event-audit-service
labels:
app: event-audit-service
spec:
replicas: 1
selector:
matchLabels:
app: event-audit-service
template:
metadata:
labels:
app: event-audit-service
spec:
containers:
- name: event-audit-service
image: '{{TARGET_REPO}}.artifactory.swg-devops.com/{{SERVICE_NAME}}:{{IMAGE_TAG}}'
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3030
env:
- name: CLOUDANT_URL
valueFrom:
secretKeyRef:
name: events-cloudant-secret
key: CLOUDANT_URL
- name: CLOUDANT_ACCOUNT
valueFrom:
secretKeyRef:
name: events-cloudant-secret
key: CLOUDANT_USER_NAME
- name: CLOUDANT_PASSWORD
valueFrom:
secretKeyRef:
name: events-cloudant-secret
key: CLOUDANT_PASSWORD
- name: AUDIT_BASE_PATH
valueFrom:
configMapKeyRef:
name: event-audit-service-config
key: AUDIT_BASE_PATH
- name: AUDIT_CLOUDANT_DB
valueFrom:
configMapKeyRef:
name: event-audit-service-config
key: AUDIT_CLOUDANT_DB
imagePullSecrets:
- name: artifactory-secret