blob: 4473dcf8fed5d2dbfbd32b8b324b8860d6bd98e8 [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: data-router
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: data-router
10 template:
11 metadata:
12 labels:
13 app: data-router
14 name: data-router
15 spec:
16 containers:
17 - name: data-router
18 image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}"
19 imagePullPolicy: {{ .Values.pullPolicy }}
20 env:
21 - name: SERVICE_BEANS
22 value: /opt/app/data-router/dynamic/conf
23 - name: CONFIG_HOME
24 value: /opt/app/data-router/config/
25 - name: KEY_STORE_PASSWORD
26 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
27 - name: DYNAMIC_ROUTES
28 value: /opt/app/data-router/dynamic/routes
29 - name: KEY_MANAGER_PASSWORD
30 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
31 - name: PATH
32 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
33 - name: JAVA_HOME
34 value: usr/lib/jvm/java-8-openjdk-amd64
35 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030036 - mountPath: /etc/localtime
37 name: localtime
38 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000039 - mountPath: /opt/app/data-router/config/
40 name: data-router-config
41 - mountPath: /opt/app/data-router/dynamic/
42 name: data-router-dynamic
43 - mountPath: /logs/
44 name: data-router-logs
45 ports:
46 - containerPort: 9502
47 readinessProbe:
48 tcpSocket:
49 port: 9502
50 initialDelaySeconds: 5
51 periodSeconds: 10
52 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030053 - name: localtime
54 hostPath:
55 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000056 - name: data-router-config
57 hostPath:
58 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/"
59 - name: data-router-dynamic
60 hostPath:
61 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/dynamic/"
62 - name: data-router-logs
63 hostPath:
64 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs/"
Mandeep Khinda4b881972017-08-30 14:24:02 +000065 restartPolicy: Always
66 imagePullSecrets:
67 - name: "{{ .Values.nsPrefix }}-docker-registry-key"