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