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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | 263ff0e | 2018-02-13 07:23:07 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.msoReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 23 | - mso-mariadb |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 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 |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 43 | - mountPath: /shared/ |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 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 |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 47 | subPath: start-jboss-server.sh |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 48 | - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml |
| 49 | name: mso-jboss-config |
| 50 | subPath: standalone-full-ha-mso.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 51 | - mountPath: /var/log/onap |
| 52 | name: mso-logs |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 53 | - 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] | 54 | name: mso-logback |
| 55 | subPath: logback.network.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 56 | - 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] | 57 | name: mso-logback |
| 58 | subPath: logback.tenant.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 59 | - 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] | 60 | name: mso-logback |
| 61 | subPath: logback.vnf.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 62 | - 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] | 63 | name: mso-logback |
| 64 | subPath: logback.vfc.xml |
| 65 | - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml |
| 66 | name: mso-logback |
| 67 | subPath: logback.apihandler-infra.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 68 | - 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] | 69 | name: mso-logback |
| 70 | subPath: logback.appc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 71 | - 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] | 72 | name: mso-logback |
| 73 | subPath: logback.msorequestsdbadapter.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 74 | - 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] | 75 | name: mso-logback |
| 76 | subPath: logback.asdc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 77 | - 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] | 78 | name: mso-logback |
| 79 | subPath: logback.sdnc.xml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 80 | - 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] | 81 | name: mso-logback |
| 82 | subPath: logback.bpmn.xml |
Alexis de Talhouët | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 83 | - 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] | 84 | name: mso-logback |
| 85 | subPath: logback.workflow-message-adapter.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 86 | env: |
| 87 | - name: JBOSS_DEBUG |
| 88 | value: "false" |
| 89 | ports: |
| 90 | - containerPort: 3904 |
| 91 | - containerPort: 3905 |
| 92 | - containerPort: 8080 |
| 93 | - containerPort: 9990 |
| 94 | - containerPort: 8787 |
| 95 | readinessProbe: |
| 96 | tcpSocket: |
| 97 | port: 8080 |
| 98 | initialDelaySeconds: 5 |
| 99 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 100 | - image: {{ .Values.image.filebeat }} |
| 101 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 102 | name: filebeat-onap |
| 103 | volumeMounts: |
| 104 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 105 | name: filebeat-conf |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 106 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 107 | - mountPath: /var/log/onap |
| 108 | name: mso-logs |
| 109 | - mountPath: /usr/share/filebeat/data |
| 110 | name: mso-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 111 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 112 | - name: localtime |
| 113 | hostPath: |
| 114 | path: /etc/localtime |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 115 | - name: mso-logback |
| 116 | configMap: |
| 117 | name: mso-log-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 118 | - name: filebeat-conf |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 119 | configMap: |
| 120 | name: mso-filebeat-configmap |
| 121 | - name: mso |
| 122 | configMap: |
| 123 | name: mso-config-mso-configmap |
| 124 | items: |
| 125 | - key: mso-docker.json |
| 126 | path: mso-docker.json |
| 127 | mode: 0755 |
| 128 | - key: aai.crt |
| 129 | path: aai.crt |
| 130 | mode: 0755 |
| 131 | - key: encryption.key |
| 132 | path: encryption.key |
| 133 | mode: 0644 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 134 | - name: mso-logs |
| 135 | emptyDir: {} |
| 136 | - name: mso-data-filebeat |
| 137 | emptyDir: {} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 138 | - name: mso-docker-files |
mayankg2703 | f09949a | 2018-01-15 09:41:12 +0000 | [diff] [blame] | 139 | configMap: |
| 140 | name: mso-docker-file-configmap |
| 141 | items: |
| 142 | - key: start-jboss-server.sh |
| 143 | path: start-jboss-server.sh |
| 144 | mode: 0755 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 145 | - name: mso-jboss-config |
| 146 | configMap: |
| 147 | name: mso-jboss-configmap |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 148 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 149 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 09f7b38 | 2017-11-13 07:46:53 +0000 | [diff] [blame] | 150 | #{{ end }} |