blob: eda5093178473d3cd1ebf1f56bd1c1703c0e583d [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: dmaap
kerenj9e77b212017-08-23 08:40:41 +00005 namespace: {{ .Values.NS }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: dmaap
10 template:
11 metadata:
12 labels:
13 app: dmaap
14 name: dmaap
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "global-kafka",
21 "--container-name",
22 "zookeeper"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenj9e77b212017-08-23 08:40:41 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "dmaap-readiness"
41 }
42 ]'
43 spec:
44 containers:
kerenj9e77b212017-08-23 08:40:41 +000045 - image: {{ .Values.image.dmaap }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: dmaap
48 ports:
49 - containerPort: 3904
50 - containerPort: 3905
51 readinessProbe:
52 tcpSocket:
53 port: 3904
54 initialDelaySeconds: 5
55 periodSeconds: 10
56 volumeMounts:
57 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
58 name: appprops
59 - mountPath: /appl/dmaapMR1/etc/cadi.properties
60 name: cadi
61 - mountPath: /appl/dmaapMR1/etc/keyfile
62 name: mykey
63 restartPolicy: Always
64 volumes:
65 - name: appprops
66 hostPath:
kerenj9e77b212017-08-23 08:40:41 +000067 path: /dockerdata-nfs/onap/message-router/dmaap/MsgRtrApi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 - name: cadi
69 hostPath:
kerenj9e77b212017-08-23 08:40:41 +000070 path: /dockerdata-nfs/onap/message-router/dmaap/cadi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 - name: mykey
72 hostPath:
kerenj9e77b212017-08-23 08:40:41 +000073 path: /dockerdata-nfs/onap/message-router/dmaap/mykey
Borislav Glozman5197e2e2017-07-24 10:45:28 +030074 imagePullSecrets:
75 - name: onap-docker-registry-key