blob: 67d51fd00ecb9daf9f24b78fc3cf2e9acd7f956a [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
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "global-kafka",
22 "--container-name",
23 "zookeeper"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
kerenj9e77b212017-08-23 08:40:41 +000039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 "name": "dmaap-readiness"
42 }
43 ]'
44 spec:
45 containers:
kerenj9e77b212017-08-23 08:40:41 +000046 - image: {{ .Values.image.dmaap }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 name: dmaap
49 ports:
50 - containerPort: 3904
51 - containerPort: 3905
52 readinessProbe:
53 tcpSocket:
54 port: 3904
55 initialDelaySeconds: 5
56 periodSeconds: 10
57 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030058 - mountPath: /etc/localtime
59 name: localtime
60 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
62 name: appprops
63 - mountPath: /appl/dmaapMR1/etc/cadi.properties
64 name: cadi
65 - mountPath: /appl/dmaapMR1/etc/keyfile
66 name: mykey
67 restartPolicy: Always
68 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030069 - name: localtime
70 hostPath:
71 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040072 - name: appprops
73 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 - name: cadi
76 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000077 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078 - name: mykey
Keren Joseph4b7026e2017-09-12 10:13:15 +030079 hostPath:
80 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/mykey
Borislav Glozman5197e2e2017-07-24 10:45:28 +030081 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000082 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030083{{ end }}