blob: 6a55305f371609814fb9b7ad26fb966bf90ed359 [file] [log] [blame]
Munir Ahmad0b133292017-08-15 15:36:46 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: data-router
5spec:
6 selector:
7 matchLabels:
8 app: data-router
9 template:
10 metadata:
11 labels:
12 app: data-router
13 name: data-router
14 spec:
15 containers:
16 - env:
17 - name: SERVICE_BEANS
18 value: /opt/app/data-router/dynamic/conf
19 - name: CONFIG_HOME
20 value: /opt/app/data-router/config/
21 - name: KEY_STORE_PASSWORD
22 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
23 - name: DYNAMIC_ROUTES
24 value: /opt/app/data-router/dynamic/routes
25 - name: KEY_MANAGER_PASSWORD
26 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
27 - name: PATH
28 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
29 - name: JAVA_HOME
30 value: usr/lib/jvm/java-8-openjdk-amd64
31 image: nexus3.onap.org:10001/openecomp/data-router:1.1-STAGING-latest
32 name: data-router
33 volumeMounts:
34 - mountPath: /opt/app/data-router/config/
35 name: data-router-config
36 - mountPath: /opt/app/data-router/dynamic/
37 name: data-router-dynamic
38 - mountPath: /logs/
39 name: data-router-logs
40 volumes:
41 - name: data-router-config
42 hostPath:
43 path: /dockerdata/onapdemo/aai/data-router/config/
44 - name: data-router-dynamic
45 hostPath:
46 path: /dockerdata/onapdemo/aai/data-router/dynamic/
47 - name: data-router-logs
48 hostPath:
49 path: /dockerdata/onapdemo/aai/data-router/logs/
50 ports:
51 - containerPort: 9502
52 readinessProbe:
53 tcpSocket:
54 port: 8080
55 initialDelaySeconds: 5
56 periodSeconds: 10
57 restartPolicy: Always
58 imagePullSecrets:
59 - name: onap-docker-registry-key