onap on kubernetes source files
[oom.git] / kubernetes / message-router / message-router-dmaap.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: dmaap
5 spec:
6   selector:
7     matchLabels:
8       app: dmaap
9   template:
10     metadata:
11       labels:
12         app: dmaap
13       name: dmaap
14       annotations:
15         pod.beta.kubernetes.io/init-containers: '[
16           {
17               "args": [
18                   "--container-name",
19                   "global-kafka",
20                   "--container-name",
21                   "zookeeper"
22               ],
23               "command": [
24                   "/root/ready.py"
25               ],
26               "env": [
27                   {
28                       "name": "NAMESPACE",
29                       "valueFrom": {
30                           "fieldRef": {
31                               "apiVersion": "v1",
32                               "fieldPath": "metadata.namespace"
33                           }
34                       }
35                   }
36               ],
37               "image": "oomk8s/readiness-check:1.0.0",
38               "imagePullPolicy": "Always",
39               "name": "dmaap-readiness"
40           }
41           ]'
42     spec:
43       containers:
44       - image: attos/dmaap:latest
45         imagePullPolicy: IfNotPresent
46         name: dmaap
47         ports:
48         - containerPort: 3904
49         - containerPort: 3905
50         readinessProbe:
51           tcpSocket:
52             port: 3904
53           initialDelaySeconds: 5
54           periodSeconds: 10
55         volumeMounts:
56         - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
57           name: appprops
58         - mountPath: /appl/dmaapMR1/etc/cadi.properties
59           name: cadi
60         - mountPath: /appl/dmaapMR1/etc/keyfile
61           name: mykey
62       restartPolicy: Always
63       volumes:
64       - name: appprops
65         hostPath:
66           path: /dockerdata-nfs/onapdemo/message-router/dmaap/MsgRtrApi.properties
67       - name: cadi
68         hostPath:
69           path: /dockerdata-nfs/onapdemo/message-router/dmaap/cadi.properties
70       - name: mykey
71         hostPath:
72           path: /dockerdata-nfs/onapdemo/message-router/dmaap/mykey