blob: bf350aeca129447576c9def78598592b30b56cb4 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: mso
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-mso"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
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 ],
kerenj74d723a2017-08-22 15:27:04 +000037 "image": "{{ .Values.image.readiness }}",
38 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 "name": "mso-readiness"
40 }
41 ]'
42 spec:
43 containers:
44 - command:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040045 - /tmp/start-jboss-server.sh
kerenj74d723a2017-08-22 15:27:04 +000046 image: {{ .Values.image.mso }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 name: mso
49 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030050 - mountPath: /etc/localtime
51 name: localtime
52 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 - mountPath: /shared
54 name: mso
Alexis de Talhouët91c77102017-09-26 10:29:32 -040055 - mountPath: /tmp/start-jboss-server.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: mso-docker-files
yurynd0707be2017-09-27 14:54:18 +030057 - 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 Khindad6ea9872017-06-24 11:49:37 -040077 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
yurynd0707be2017-09-27 14:54:18 +030091 - 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 Khindad6ea9872017-06-24 11:49:37 -0400101 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300102 - name: localtime
103 hostPath:
104 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300105 - 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 Khindad6ea9872017-06-24 11:49:37 -0400132 - name: mso
133 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000134 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso
yurynd0707be2017-09-27 14:54:18 +0300135 - 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 Khindad6ea9872017-06-24 11:49:37 -0400142 - name: mso-docker-files
143 hostPath:
Alexis de Talhouët91c77102017-09-26 10:29:32 -0400144 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/docker-files/scripts/start-jboss-server.sh
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300145 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000146 - name: "{{ .Values.nsPrefix }}-docker-registry-key"