blob: 2abb29091fbf4e7b8e61002d0b48c8216742947d [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranya09f7b382017-11-13 07:46:53 +000018 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 Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - command:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040035 - /tmp/start-jboss-server.sh
kerenj74d723a2017-08-22 15:27:04 +000036 image: {{ .Values.image.mso }}
37 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 name: mso
39 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030040 - mountPath: /etc/localtime
41 name: localtime
42 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040043 - mountPath: /shared
44 name: mso
Alexis de Talhouët91c77102017-09-26 10:29:32 -040045 - mountPath: /tmp/start-jboss-server.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: mso-docker-files
yurynd0707be2017-09-27 14:54:18 +030047 - mountPath: /var/log/onap
48 name: mso-logs
49 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
50 name: logback-apihandler-infra
51 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
52 name: logback-network
53 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
54 name: logback-tenant
55 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
56 name: logback-vnf
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050057 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
58 name: logback-vfc
yurynd0707be2017-09-27 14:54:18 +030059 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
60 name: logback-appc
61 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
62 name: logback-msorequestsdbadapter
63 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
64 name: logback-asdc
65 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
66 name: logback-sdnc
67 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
68 name: logback-bpmn
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -050069 - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
70 name: logback-workflow-message-adapter
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 env:
72 - name: JBOSS_DEBUG
73 value: "false"
74 ports:
75 - containerPort: 3904
76 - containerPort: 3905
77 - containerPort: 8080
78 - containerPort: 9990
79 - containerPort: 8787
80 readinessProbe:
81 tcpSocket:
82 port: 8080
83 initialDelaySeconds: 5
84 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030085 - image: {{ .Values.image.filebeat }}
86 imagePullPolicy: {{ .Values.pullPolicy }}
87 name: filebeat-onap
88 volumeMounts:
89 - mountPath: /usr/share/filebeat/filebeat.yml
90 name: filebeat-conf
91 - mountPath: /var/log/onap
92 name: mso-logs
93 - mountPath: /usr/share/filebeat/data
94 name: mso-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040095 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030096 - name: localtime
97 hostPath:
98 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030099 - name: logback-apihandler-infra
100 hostPath:
101 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.apihandler-infra.xml
102 - name: logback-network
103 hostPath:
104 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.network.xml
105 - name: logback-tenant
106 hostPath:
107 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.tenant.xml
108 - name: logback-vnf
109 hostPath:
110 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vnf.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -0500111 - name: logback-vfc
112 hostPath:
113 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.vfc.xml
yurynd0707be2017-09-27 14:54:18 +0300114 - name: logback-appc
115 hostPath:
116 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.appc.xml
117 - name: logback-msorequestsdbadapter
118 hostPath:
119 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.msorequestsdbadapter.xml
120 - name: logback-asdc
121 hostPath:
122 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.asdc.xml
123 - name: logback-sdnc
124 hostPath:
125 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.sdnc.xml
126 - name: logback-bpmn
127 hostPath:
128 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.bpmn.xml
Alexis de Talhouët9a3b3f72017-11-27 14:54:47 -0500129 - name: logback-workflow-message-adapter
130 hostPath:
131 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/mso/logback.workflow-message-adapter.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"
kiranya09f7b382017-11-13 07:46:53 +0000147#{{ end }}