blob: 8a099a47445235af77860c255c27fedc585a25f8 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMsoMso }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: mso
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16dec263ff0e2018-02-13 07:23:07 +000022 replicas: {{ .Values.msoReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: mso
26 template:
27 metadata:
28 labels:
29 app: mso
30 name: mso
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
kiranya09f7b382017-11-13 07:46:53 +000032 initContainers:
33 - command:
34 - /root/ready.py
35 args:
36 - --container-name
BorislavG8bfc6cf2018-02-27 15:04:26 +000037 - mso-mariadb
kiranya09f7b382017-11-13 07:46:53 +000038 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 Khindad6ea9872017-06-24 11:49:37 -040047 containers:
48 - command:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040049 - /tmp/start-jboss-server.sh
kerenj74d723a2017-08-22 15:27:04 +000050 image: {{ .Values.image.mso }}
51 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 name: mso
53 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - mountPath: /etc/localtime
55 name: localtime
56 readOnly: true
mayankg2703f09949a2018-01-15 09:41:12 +000057 - mountPath: /shared/
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 name: mso
Alexis de Talhouët91c77102017-09-26 10:29:32 -040059 - mountPath: /tmp/start-jboss-server.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060 name: mso-docker-files
mayankg2703f09949a2018-01-15 09:41:12 +000061 subPath: start-jboss-server.sh
BorislavG8bfc6cf2018-02-27 15:04:26 +000062 - mountPath: /opt/jboss/standalone/configuration/standalone-full-ha-mso.xml
63 name: mso-jboss-config
64 subPath: standalone-full-ha-mso.xml
yurynd0707be2017-09-27 14:54:18 +030065 - mountPath: /var/log/onap
66 name: mso-logs
yurynd0707be2017-09-27 14:54:18 +030067 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
mayankg2703f09949a2018-01-15 09:41:12 +000068 name: mso-logback
69 subPath: logback.network.xml
yurynd0707be2017-09-27 14:54:18 +030070 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
mayankg2703f09949a2018-01-15 09:41:12 +000071 name: mso-logback
72 subPath: logback.tenant.xml
yurynd0707be2017-09-27 14:54:18 +030073 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
mayankg2703f09949a2018-01-15 09:41:12 +000074 name: mso-logback
75 subPath: logback.vnf.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050076 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000077 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
yurynd0707be2017-09-27 14:54:18 +030082 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000083 name: mso-logback
84 subPath: logback.appc.xml
yurynd0707be2017-09-27 14:54:18 +030085 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000086 name: mso-logback
87 subPath: logback.msorequestsdbadapter.xml
yurynd0707be2017-09-27 14:54:18 +030088 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000089 name: mso-logback
90 subPath: logback.asdc.xml
yurynd0707be2017-09-27 14:54:18 +030091 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
mayankg2703f09949a2018-01-15 09:41:12 +000092 name: mso-logback
93 subPath: logback.sdnc.xml
yurynd0707be2017-09-27 14:54:18 +030094 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
mayankg2703f09949a2018-01-15 09:41:12 +000095 name: mso-logback
96 subPath: logback.bpmn.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050097 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
mayankg2703f09949a2018-01-15 09:41:12 +000098 name: mso-logback
99 subPath: logback.workflow-message-adapter.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400100 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
yurynd0707be2017-09-27 14:54:18 +0300114 - 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
mayankg2703f09949a2018-01-15 09:41:12 +0000120 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300121 - mountPath: /var/log/onap
122 name: mso-logs
123 - mountPath: /usr/share/filebeat/data
124 name: mso-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400125 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300126 - name: localtime
127 hostPath:
128 path: /etc/localtime
mayankg2703f09949a2018-01-15 09:41:12 +0000129 - name: mso-logback
130 configMap:
131 name: mso-log-configmap
yurynd0707be2017-09-27 14:54:18 +0300132 - name: filebeat-conf
mayankg2703f09949a2018-01-15 09:41:12 +0000133 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
yurynd0707be2017-09-27 14:54:18 +0300148 - name: mso-logs
149 emptyDir: {}
150 - name: mso-data-filebeat
151 emptyDir: {}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400152 - name: mso-docker-files
mayankg2703f09949a2018-01-15 09:41:12 +0000153 configMap:
154 name: mso-docker-file-configmap
155 items:
156 - key: start-jboss-server.sh
157 path: start-jboss-server.sh
158 mode: 0755
BorislavG8bfc6cf2018-02-27 15:04:26 +0000159 - name: mso-jboss-config
160 configMap:
161 name: mso-jboss-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300162 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000163 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya09f7b382017-11-13 07:46:53 +0000164#{{ end }}