blob: 46c2e65b46c94cd9936687239afa298838aa6238 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableDcaeDmaap }}
Mike Elliott586f03b2017-09-08 12:46:15 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: dmaap
6 namespace: "{{ .Values.nsPrefix }}-dcae"
7spec:
8 selector:
9 matchLabels:
10 app: dmaap
11 template:
12 metadata:
13 labels:
14 app: dmaap
15 name: dmaap
Mike Elliott586f03b2017-09-08 12:46:15 -040016 spec:
kiranyadc55bbc2017-11-22 14:22:04 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - kafka
23 - --container-name
24 - zookeeper
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: dmaap-readiness
Mike Elliott586f03b2017-09-08 12:46:15 -040034 containers:
35 - image: {{ .Values.image.dmaap }}
36 imagePullPolicy: {{ .Values.pullPolicy }}
37 name: dmaap
38 ports:
39 - containerPort: 3904
40 - containerPort: 3905
41 readinessProbe:
42 tcpSocket:
43 port: 3904
44 initialDelaySeconds: 5
45 periodSeconds: 10
46 volumeMounts:
47 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
48 name: appprops
49 - mountPath: /appl/dmaapMR1/etc/cadi.properties
50 name: cadi
51 - mountPath: /appl/dmaapMR1/etc/keyfile
52 name: mykey
53 restartPolicy: Always
54 volumes:
55 - name: appprops
56 hostPath:
57 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/MsgRtrApi.properties
58 - name: cadi
59 hostPath:
60 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/cadi.properties
61 - name: mykey
62 hostPath:
63 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/mykey
64 imagePullSecrets:
65 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyadc55bbc2017-11-22 14:22:04 +000066#{{ end }}