blob: a33d9b08fade4808da3387628f057e5622eab277 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsoMso }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: mso
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-mso"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 app: mso
12 template:
13 metadata:
14 labels:
15 app: mso
16 name: mso
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "mariadb"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenj74d723a2017-08-22 15:27:04 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "mso-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - command:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040046 - /tmp/start-jboss-server.sh
kerenj74d723a2017-08-22 15:27:04 +000047 image: {{ .Values.image.mso }}
48 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 name: mso
50 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030051 - mountPath: /etc/localtime
52 name: localtime
53 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 - mountPath: /shared
55 name: mso
Alexis de Talhouët91c77102017-09-26 10:29:32 -040056 - mountPath: /tmp/start-jboss-server.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: mso-docker-files
yurynd0707be2017-09-27 14:54:18 +030058 - mountPath: /var/log/onap
59 name: mso-logs
60 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
61 name: logback-apihandler-infra
62 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
63 name: logback-network
64 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
65 name: logback-tenant
66 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
67 name: logback-vnf
68 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
69 name: logback-appc
70 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
71 name: logback-msorequestsdbadapter
72 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
73 name: logback-asdc
74 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
75 name: logback-sdnc
76 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
77 name: logback-bpmn
Mandeep Khindad6ea9872017-06-24 11:49:37 -040078 env:
79 - name: JBOSS_DEBUG
80 value: "false"
81 ports:
82 - containerPort: 3904
83 - containerPort: 3905
84 - containerPort: 8080
85 - containerPort: 9990
86 - containerPort: 8787
87 readinessProbe:
88 tcpSocket:
89 port: 8080
90 initialDelaySeconds: 5
91 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030092 - image: {{ .Values.image.filebeat }}
93 imagePullPolicy: {{ .Values.pullPolicy }}
94 name: filebeat-onap
95 volumeMounts:
96 - mountPath: /usr/share/filebeat/filebeat.yml
97 name: filebeat-conf
98 - mountPath: /var/log/onap
99 name: mso-logs
100 - mountPath: /usr/share/filebeat/data
101 name: mso-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400102 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300103 - name: localtime
104 hostPath:
105 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300106 - name: logback-apihandler-infra
107 hostPath:
108 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.apihandler-infra.xml
109 - name: logback-network
110 hostPath:
111 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.network.xml
112 - name: logback-tenant
113 hostPath:
114 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.tenant.xml
115 - name: logback-vnf
116 hostPath:
117 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vnf.xml
118 - name: logback-appc
119 hostPath:
120 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.appc.xml
121 - name: logback-msorequestsdbadapter
122 hostPath:
123 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.msorequestsdbadapter.xml
124 - name: logback-asdc
125 hostPath:
126 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.asdc.xml
127 - name: logback-sdnc
128 hostPath:
129 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.sdnc.xml
130 - name: logback-bpmn
131 hostPath:
132 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.bpmn.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400133 - name: mso
134 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000135 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso
yurynd0707be2017-09-27 14:54:18 +0300136 - name: filebeat-conf
137 hostPath:
138 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
139 - name: mso-logs
140 emptyDir: {}
141 - name: mso-data-filebeat
142 emptyDir: {}
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400143 - name: mso-docker-files
144 hostPath:
Alexis de Talhouët91c77102017-09-26 10:29:32 -0400145 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/docker-files/scripts/start-jboss-server.sh
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300146 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000147 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +0300148#{{ end }}