1251302380f89f48fb2751505e17701ca00b5471
[oom.git] / kubernetes / aai / aai-dmaap-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: aai-dmaap
5 spec:
6   selector:
7     matchLabels:
8       app: aai-dmaap
9   template:
10     metadata:
11       labels:
12         app: aai-dmaap
13       name: aai-dmaap
14     spec:
15       containers:
16       - env:
17         - name: LANG
18           value: C.UTF-8
19         - name: JAVA_VERSION
20           value: 8u111
21         - name: JAVA_DEBIAN_VERSION
22           value: 8u111-b14-2~bpo8+1
23         - name: CA_CERTIFICATES_JAVA_VERSION
24           value: 20140324
25         - name: PATH
26           value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27         - name: JAVA_HOME
28           value: /usr/lib/jvm/java-8-openjdk-amd64
29         image: nexus3.onap.org:10001/openecomp/dmaap:latest
30         name: aai-dmaap
31         volumeMounts:
32         - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
33           name: aai-dmaap-config
34         - mountPath: /opt/message-router/docker_files/mykey
35           name: aai-dmaap-key
36         - mountPath: /opt/message-router/docker_files/cadi.properties
37           name: aai-dmaap-cadi
38       volumes:
39         - name: aai-dmaap-config
40           hostPath:
41             path: /dockerdata/onapdemo/aai/aai-dmaap-config
42         - name: aai-dmaap-key
43           hostPath:
44             path: /dockerdata/onapdemo/aai/aai-dmaap-key
45         - name: aai-dmaap-cadi
46           hostPath:
47             path: /dockerdata/onapdemo/aai/aai-dmaap-cadi
48         ports:
49         - containerPort: 3904
50         - containerPort: 3905
51         readinessProbe:
52           tcpSocket:
53             port: 8080
54           initialDelaySeconds: 5
55           periodSeconds: 10
56       restartPolicy: Always
57       imagePullSecrets:
58       - name: onap-docker-registry-key