Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: dmaap |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 5 | namespace: {{ .Values.NS }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 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 | "global-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 | ], |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 38 | "image": "{{ .Values.image.readiness }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | "name": "dmaap-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 45 | - image: {{ .Values.image.dmaap }} |
| 46 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 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: |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 67 | path: /dockerdata-nfs/onap/message-router/dmaap/MsgRtrApi.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | - name: cadi |
| 69 | hostPath: |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 70 | path: /dockerdata-nfs/onap/message-router/dmaap/cadi.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | - name: mykey |
| 72 | hostPath: |
kerenj | 9e77b21 | 2017-08-23 08:40:41 +0000 | [diff] [blame^] | 73 | path: /dockerdata-nfs/onap/message-router/dmaap/mykey |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 74 | imagePullSecrets: |
| 75 | - name: onap-docker-registry-key |