Mike Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: dmaap |
| 5 | namespace: "{{ .Values.nsPrefix }}-dcae" |
| 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: dmaap |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: dmaap |
| 14 | name: dmaap |
| 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "kafka", |
| 21 | "--container-name", |
| 22 | "zookeeper" |
| 23 | ], |
| 24 | "command": [ |
| 25 | "/root/ready.py" |
| 26 | ], |
| 27 | "env": [ |
| 28 | { |
| 29 | "name": "NAMESPACE", |
| 30 | "valueFrom": { |
| 31 | "fieldRef": { |
| 32 | "apiVersion": "v1", |
| 33 | "fieldPath": "metadata.namespace" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | ], |
| 38 | "image": "{{ .Values.image.readiness }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 40 | "name": "dmaap-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
| 45 | - image: {{ .Values.image.dmaap }} |
| 46 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 47 | name: dmaap |
| 48 | ports: |
| 49 | - containerPort: 3904 |
| 50 | - containerPort: 3905 |
| 51 | readinessProbe: |
| 52 | tcpSocket: |
| 53 | port: 3904 |
| 54 | initialDelaySeconds: 5 |
| 55 | periodSeconds: 10 |
| 56 | volumeMounts: |
| 57 | - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 58 | name: appprops |
| 59 | - mountPath: /appl/dmaapMR1/etc/cadi.properties |
| 60 | name: cadi |
| 61 | - mountPath: /appl/dmaapMR1/etc/keyfile |
| 62 | name: mykey |
| 63 | restartPolicy: Always |
| 64 | volumes: |
| 65 | - name: appprops |
| 66 | hostPath: |
| 67 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/MsgRtrApi.properties |
| 68 | - name: cadi |
| 69 | hostPath: |
| 70 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/cadi.properties |
| 71 | - name: mykey |
| 72 | hostPath: |
| 73 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/mykey |
| 74 | imagePullSecrets: |
| 75 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |