vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableMsoMso }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: mso |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | 263ff0e | 2018-02-13 07:23:07 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.msoReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: mso |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: mso |
| 30 | name: mso |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 31 | spec: |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 32 | initContainers: |
| 33 | - command: |
| 34 | - /root/ready.py |
| 35 | args: |
| 36 | - --container-name |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 37 | - mso-mariadb |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 38 | env: |
| 39 | - name: NAMESPACE |
| 40 | valueFrom: |
| 41 | fieldRef: |
| 42 | apiVersion: v1 |
| 43 | fieldPath: metadata.namespace |
| 44 | image: {{ .Values.image.readiness }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 46 | name: mso-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | containers: |
| 48 | - command: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 49 | - /tmp/start-jboss-server.sh |
kerenj | 74d723a | 2017-08-22 15:27:04 +0000 | [diff] [blame] | 50 | image: {{ .Values.image.mso }} |
| 51 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 52 | name: mso |
| 53 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 54 | - mountPath: /etc/localtime |
| 55 | name: localtime |
| 56 | readOnly: true |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 57 | - mountPath: /shared/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | name: mso |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 59 | - mountPath: /tmp/start-jboss-server.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | name: mso-docker-files |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 61 | subPath: start-jboss-server.sh |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 62 | - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml |
| 63 | name: mso-jboss-config |
| 64 | subPath: standalone-full-ha-mso.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 65 | - mountPath: /var/log/onap |
| 66 | name: mso-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 67 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 68 | name: mso-logback |
| 69 | subPath: logback.network.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 70 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 71 | name: mso-logback |
| 72 | subPath: logback.tenant.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 73 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 74 | name: mso-logback |
| 75 | subPath: logback.vnf.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 76 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 77 | name: mso-logback |
| 78 | subPath: logback.vfc.xml |
| 79 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml |
| 80 | name: mso-logback |
| 81 | subPath: logback.apihandler-infra.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 82 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 83 | name: mso-logback |
| 84 | subPath: logback.appc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 85 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 86 | name: mso-logback |
| 87 | subPath: logback.msorequestsdbadapter.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 88 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 89 | name: mso-logback |
| 90 | subPath: logback.asdc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 91 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 92 | name: mso-logback |
| 93 | subPath: logback.sdnc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 94 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 95 | name: mso-logback |
| 96 | subPath: logback.bpmn.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 97 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 98 | name: mso-logback |
| 99 | subPath: logback.workflow-message-adapter.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 100 | env: |
| 101 | - name: JBOSS_DEBUG |
| 102 | value: "false" |
| 103 | ports: |
| 104 | - containerPort: 3904 |
| 105 | - containerPort: 3905 |
| 106 | - containerPort: 8080 |
| 107 | - containerPort: 9990 |
| 108 | - containerPort: 8787 |
| 109 | readinessProbe: |
| 110 | tcpSocket: |
| 111 | port: 8080 |
| 112 | initialDelaySeconds: 5 |
| 113 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 114 | - image: {{ .Values.image.filebeat }} |
| 115 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 116 | name: filebeat-onap |
| 117 | volumeMounts: |
| 118 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 119 | name: filebeat-conf |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 120 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 121 | - mountPath: /var/log/onap |
| 122 | name: mso-logs |
| 123 | - mountPath: /usr/share/filebeat/data |
| 124 | name: mso-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 125 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 126 | - name: localtime |
| 127 | hostPath: |
| 128 | path: /etc/localtime |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 129 | - name: mso-logback |
| 130 | configMap: |
| 131 | name: mso-log-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 132 | - name: filebeat-conf |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 133 | configMap: |
| 134 | name: mso-filebeat-configmap |
| 135 | - name: mso |
| 136 | configMap: |
| 137 | name: mso-config-mso-configmap |
| 138 | items: |
| 139 | - key: mso-docker.json |
| 140 | path: mso-docker.json |
| 141 | mode: 0755 |
| 142 | - key: aai.crt |
| 143 | path: aai.crt |
| 144 | mode: 0755 |
| 145 | - key: encryption.key |
| 146 | path: encryption.key |
| 147 | mode: 0644 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 148 | - name: mso-logs |
| 149 | emptyDir: {} |
| 150 | - name: mso-data-filebeat |
| 151 | emptyDir: {} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 152 | - name: mso-docker-files |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 153 | configMap: |
| 154 | name: mso-docker-file-configmap |
| 155 | items: |
| 156 | - key: start-jboss-server.sh |
| 157 | path: start-jboss-server.sh |
| 158 | mode: 0755 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 159 | - name: mso-jboss-config |
| 160 | configMap: |
| 161 | name: mso-jboss-configmap |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 162 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 163 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 164 | #{{ end }} |