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 |
| 17 | annotations: |
| 18 | pod.beta.kubernetes.io/init-containers: '[ |
| 19 | { |
| 20 | "args": [ |
| 21 | "--container-name", |
| 22 | "mariadb" |
| 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 | 74d723a | 2017-08-22 15:27:04 +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": "mso-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
| 45 | - command: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 46 | - /tmp/start-jboss-server.sh |
kerenj | 74d723a | 2017-08-22 15:27:04 +0000 | [diff] [blame] | 47 | image: {{ .Values.image.mso }} |
| 48 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | name: mso |
| 50 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 51 | - mountPath: /etc/localtime |
| 52 | name: localtime |
| 53 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | - mountPath: /shared |
| 55 | name: mso |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 56 | - mountPath: /tmp/start-jboss-server.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 57 | name: mso-docker-files |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 58 | - mountPath: /var/log/onap |
| 59 | name: mso-logs |
| 60 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml |
| 61 | name: logback-apihandler-infra |
| 62 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml |
| 63 | name: logback-network |
| 64 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml |
| 65 | name: logback-tenant |
| 66 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml |
| 67 | name: logback-vnf |
| 68 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml |
| 69 | name: logback-appc |
| 70 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml |
| 71 | name: logback-msorequestsdbadapter |
| 72 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml |
| 73 | name: logback-asdc |
| 74 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml |
| 75 | name: logback-sdnc |
| 76 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml |
| 77 | name: logback-bpmn |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | env: |
| 79 | - name: JBOSS_DEBUG |
| 80 | value: "false" |
| 81 | ports: |
| 82 | - containerPort: 3904 |
| 83 | - containerPort: 3905 |
| 84 | - containerPort: 8080 |
| 85 | - containerPort: 9990 |
| 86 | - containerPort: 8787 |
| 87 | readinessProbe: |
| 88 | tcpSocket: |
| 89 | port: 8080 |
| 90 | initialDelaySeconds: 5 |
| 91 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 92 | - image: {{ .Values.image.filebeat }} |
| 93 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 94 | name: filebeat-onap |
| 95 | volumeMounts: |
| 96 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 97 | name: filebeat-conf |
| 98 | - mountPath: /var/log/onap |
| 99 | name: mso-logs |
| 100 | - mountPath: /usr/share/filebeat/data |
| 101 | name: mso-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 102 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 103 | - name: localtime |
| 104 | hostPath: |
| 105 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 106 | - name: logback-apihandler-infra |
| 107 | hostPath: |
| 108 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.apihandler-infra.xml |
| 109 | - name: logback-network |
| 110 | hostPath: |
| 111 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.network.xml |
| 112 | - name: logback-tenant |
| 113 | hostPath: |
| 114 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.tenant.xml |
| 115 | - name: logback-vnf |
| 116 | hostPath: |
| 117 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vnf.xml |
| 118 | - name: logback-appc |
| 119 | hostPath: |
| 120 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.appc.xml |
| 121 | - name: logback-msorequestsdbadapter |
| 122 | hostPath: |
| 123 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.msorequestsdbadapter.xml |
| 124 | - name: logback-asdc |
| 125 | hostPath: |
| 126 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.asdc.xml |
| 127 | - name: logback-sdnc |
| 128 | hostPath: |
| 129 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.sdnc.xml |
| 130 | - name: logback-bpmn |
| 131 | hostPath: |
| 132 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.bpmn.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 133 | - name: mso |
| 134 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 135 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 136 | - name: filebeat-conf |
| 137 | hostPath: |
| 138 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
| 139 | - name: mso-logs |
| 140 | emptyDir: {} |
| 141 | - name: mso-data-filebeat |
| 142 | emptyDir: {} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 143 | - name: mso-docker-files |
| 144 | hostPath: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 145 | 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] | 146 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 147 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 148 | #{{ end }} |