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