yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMsoMso }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: mso |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-mso" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | replicas: 1 |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: mso |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: mso |
| 16 | name: mso |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 17 | spec: |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /root/ready.py |
| 21 | args: |
| 22 | - --container-name |
| 23 | - mariadb |
| 24 | env: |
| 25 | - name: NAMESPACE |
| 26 | valueFrom: |
| 27 | fieldRef: |
| 28 | apiVersion: v1 |
| 29 | fieldPath: metadata.namespace |
| 30 | image: {{ .Values.image.readiness }} |
| 31 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 32 | name: mso-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | containers: |
| 34 | - command: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 35 | - /tmp/start-jboss-server.sh |
kerenj | 74d723a | 2017-08-22 15:27:04 +0000 | [diff] [blame] | 36 | image: {{ .Values.image.mso }} |
| 37 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | name: mso |
| 39 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 40 | - mountPath: /etc/localtime |
| 41 | name: localtime |
| 42 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 43 | - mountPath: /shared |
| 44 | name: mso |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 45 | - mountPath: /tmp/start-jboss-server.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | name: mso-docker-files |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 47 | - mountPath: /var/log/onap |
| 48 | name: mso-logs |
| 49 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml |
| 50 | name: logback-apihandler-infra |
| 51 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml |
| 52 | name: logback-network |
| 53 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml |
| 54 | name: logback-tenant |
| 55 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml |
| 56 | name: logback-vnf |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 57 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml |
| 58 | name: logback-vfc |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 59 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml |
| 60 | name: logback-appc |
| 61 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml |
| 62 | name: logback-msorequestsdbadapter |
| 63 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml |
| 64 | name: logback-asdc |
| 65 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml |
| 66 | name: logback-sdnc |
| 67 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml |
| 68 | name: logback-bpmn |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 69 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml |
| 70 | name: logback-workflow-message-adapter |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 71 | env: |
| 72 | - name: JBOSS_DEBUG |
| 73 | value: "false" |
| 74 | ports: |
| 75 | - containerPort: 3904 |
| 76 | - containerPort: 3905 |
| 77 | - containerPort: 8080 |
| 78 | - containerPort: 9990 |
| 79 | - containerPort: 8787 |
| 80 | readinessProbe: |
| 81 | tcpSocket: |
| 82 | port: 8080 |
| 83 | initialDelaySeconds: 5 |
| 84 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 85 | - image: {{ .Values.image.filebeat }} |
| 86 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 87 | name: filebeat-onap |
| 88 | volumeMounts: |
| 89 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 90 | name: filebeat-conf |
| 91 | - mountPath: /var/log/onap |
| 92 | name: mso-logs |
| 93 | - mountPath: /usr/share/filebeat/data |
| 94 | name: mso-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 95 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 96 | - name: localtime |
| 97 | hostPath: |
| 98 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 99 | - name: logback-apihandler-infra |
| 100 | hostPath: |
| 101 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.apihandler-infra.xml |
| 102 | - name: logback-network |
| 103 | hostPath: |
| 104 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.network.xml |
| 105 | - name: logback-tenant |
| 106 | hostPath: |
| 107 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.tenant.xml |
| 108 | - name: logback-vnf |
| 109 | hostPath: |
| 110 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vnf.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 111 | - name: logback-vfc |
| 112 | hostPath: |
| 113 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vfc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 114 | - name: logback-appc |
| 115 | hostPath: |
| 116 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.appc.xml |
| 117 | - name: logback-msorequestsdbadapter |
| 118 | hostPath: |
| 119 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.msorequestsdbadapter.xml |
| 120 | - name: logback-asdc |
| 121 | hostPath: |
| 122 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.asdc.xml |
| 123 | - name: logback-sdnc |
| 124 | hostPath: |
| 125 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.sdnc.xml |
| 126 | - name: logback-bpmn |
| 127 | hostPath: |
| 128 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.bpmn.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 129 | - name: logback-workflow-message-adapter |
| 130 | hostPath: |
| 131 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.workflow-message-adapter.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 132 | - name: mso |
| 133 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 134 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 135 | - name: filebeat-conf |
| 136 | hostPath: |
| 137 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 138 | - name: mso-logs |
| 139 | emptyDir: {} |
| 140 | - name: mso-data-filebeat |
| 141 | emptyDir: {} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 142 | - name: mso-docker-files |
| 143 | hostPath: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 144 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/docker-files/scripts/start-jboss-server.sh |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 145 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 146 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 147 | #{{ end }} |