blob: cc13a382dad60b1931dc6669b8c5fdf17ba42546 [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:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: message-router-dmaap
6 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16deca6719fe2018-02-14 09:48:43 +00008 replicas: {{ .Values.dmaapReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: dmaap
12 template:
13 metadata:
14 labels:
15 app: dmaap
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: message-router-dmaap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranya3561e012017-11-22 13:45:35 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - global-kafka
24 - --container-name
25 - zookeeper
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: dmaap-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
kerenj9e77b212017-08-23 08:40:41 +000036 - image: {{ .Values.image.dmaap }}
37 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 name: dmaap
39 ports:
40 - containerPort: 3904
41 - containerPort: 3905
42 readinessProbe:
43 tcpSocket:
44 port: 3904
45 initialDelaySeconds: 5
46 periodSeconds: 10
47 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - mountPath: /etc/localtime
49 name: localtime
50 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
52 name: appprops
53 - mountPath: /appl/dmaapMR1/etc/cadi.properties
54 name: cadi
55 - mountPath: /appl/dmaapMR1/etc/keyfile
56 name: mykey
57 restartPolicy: Always
58 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030059 - name: localtime
60 hostPath:
61 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 - name: appprops
63 hostPath:
kerenje2e63502018-02-25 12:22:53 +000064 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - name: cadi
66 hostPath:
kerenje2e63502018-02-25 12:22:53 +000067 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 - name: mykey
Keren Joseph4b7026e2017-09-12 10:13:15 +030069 hostPath:
kerenje2e63502018-02-25 12:22:53 +000070 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/mykey
Borislav Glozman5197e2e2017-07-24 10:45:28 +030071 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya3561e012017-11-22 13:45:35 +000073{{ end }}