yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableDcaeDmaap }} |
Mike Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: dmaap |
| 6 | namespace: "{{ .Values.nsPrefix }}-dcae" |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: dmaap |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: dmaap |
| 15 | name: dmaap |
Mike Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 16 | spec: |
kiranya | dc55bbc | 2017-11-22 14:22:04 +0000 | [diff] [blame] | 17 | 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 Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 34 | 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" |
kiranya | dc55bbc | 2017-11-22 14:22:04 +0000 | [diff] [blame] | 66 | #{{ end }} |