blob: f823061c33aa4ef7cddd0da104f15fbef5751852 [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:
36 - mountPath: /opt/app/data-router/config/
37 name: data-router-config
38 - mountPath: /opt/app/data-router/dynamic/
39 name: data-router-dynamic
40 - mountPath: /logs/
41 name: data-router-logs
42 ports:
43 - containerPort: 9502
44 readinessProbe:
45 tcpSocket:
46 port: 9502
47 initialDelaySeconds: 5
48 periodSeconds: 10
49 volumes:
50 - name: data-router-config
51 hostPath:
52 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/"
53 - name: data-router-dynamic
54 hostPath:
55 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/dynamic/"
56 - name: data-router-logs
57 hostPath:
58 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs/"
Mandeep Khinda4b881972017-08-30 14:24:02 +000059 restartPolicy: Always
60 imagePullSecrets:
61 - name: "{{ .Values.nsPrefix }}-docker-registry-key"