yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMessageRouterDmaap }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 5 | name: message-router-dmaap |
| 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.dmaapReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: dmaap |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: dmaap |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 16 | name: message-router-dmaap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 17 | spec: |
kiranya | 3561e01 | 2017-11-22 13:45:35 +0000 | [diff] [blame] | 18 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 35 | containers: |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame] | 36 | - image: {{ .Values.image.dmaap }} |
| 37 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | 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: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - mountPath: /etc/localtime |
| 49 | name: localtime |
| 50 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - 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: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 59 | - name: localtime |
| 60 | hostPath: |
| 61 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | - name: appprops |
| 63 | hostPath: |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 64 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | - name: cadi |
| 66 | hostPath: |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 67 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | - name: mykey |
Keren Joseph | 4b7026e | 2017-09-12 10:13:15 +0300 | [diff] [blame] | 69 | hostPath: |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 70 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dmaap/mykey |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 71 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 72 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 3561e01 | 2017-11-22 13:45:35 +0000 | [diff] [blame] | 73 | {{ end }} |