blob: 1d9777e760fffc92b9db89e6611ccdcc8ca9cfee [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMessageRouterDmaap }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: dmaap
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-message-router"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: dmaap
11 template:
12 metadata:
13 labels:
14 app: dmaap
15 name: dmaap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
kiranya3561e012017-11-22 13:45:35 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - global-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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
kerenj9e77b212017-08-23 08:40:41 +000035 - image: {{ .Values.image.dmaap }}
36 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 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:
yuryn8b3bc5a2017-09-13 19:21:03 +030047 - mountPath: /etc/localtime
48 name: localtime
49 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
51 name: appprops
52 - mountPath: /appl/dmaapMR1/etc/cadi.properties
53 name: cadi
54 - mountPath: /appl/dmaapMR1/etc/keyfile
55 name: mykey
56 restartPolicy: Always
57 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030058 - name: localtime
59 hostPath:
60 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - name: appprops
62 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040064 - name: cadi
65 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000066 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 - name: mykey
Keren Joseph4b7026e2017-09-12 10:13:15 +030068 hostPath:
69 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/mykey
Borislav Glozman5197e2e2017-07-24 10:45:28 +030070 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya3561e012017-11-22 13:45:35 +000072{{ end }}