blob: 6b3c024c2a64bc633fe6fb14d279f05e828defbb [file] [log] [blame]
yuryn5d0587b2017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiDataRouter }}
Mandeep Khindafc068432017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: data-router
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: data-router
11 template:
12 metadata:
13 labels:
14 app: data-router
15 name: data-router
16 spec:
17 containers:
18 - name: data-router
19 image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}"
20 imagePullPolicy: {{ .Values.pullPolicy }}
21 env:
22 - name: SERVICE_BEANS
23 value: /opt/app/data-router/dynamic/conf
24 - name: CONFIG_HOME
25 value: /opt/app/data-router/config/
26 - name: KEY_STORE_PASSWORD
27 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
28 - name: DYNAMIC_ROUTES
29 value: /opt/app/data-router/dynamic/routes
30 - name: KEY_MANAGER_PASSWORD
31 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
32 - name: PATH
33 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
34 - name: JAVA_HOME
35 value: usr/lib/jvm/java-8-openjdk-amd64
36 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030037 - mountPath: /etc/localtime
38 name: localtime
39 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000040 - mountPath: /opt/app/data-router/config/
41 name: data-router-config
42 - mountPath: /opt/app/data-router/dynamic/
43 name: data-router-dynamic
44 - mountPath: /logs/
45 name: data-router-logs
46 ports:
47 - containerPort: 9502
48 readinessProbe:
49 tcpSocket:
50 port: 9502
51 initialDelaySeconds: 5
52 periodSeconds: 10
53 volumes:
yurync400bf52017-09-13 19:21:03 +030054 - name: localtime
55 hostPath:
56 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000057 - name: data-router-config
58 hostPath:
59 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/"
60 - name: data-router-dynamic
61 hostPath:
62 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/dynamic/"
63 - name: data-router-logs
64 hostPath:
65 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs/"
Mandeep Khindafc068432017-08-30 14:24:02 +000066 restartPolicy: Always
67 imagePullSecrets:
68 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yuryn5d0587b2017-10-26 17:10:50 +030069#{{ end }}