License addition in all yamls
[oom.git] / kubernetes / esr / templates / esr-esrserver-deployment.yaml
1 # 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
15 #{{ if not .Values.disableUuiUui }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   labels:
20     app: esr-esrserver
21   name: esr-esrserver
22   namespace: "{{ .Values.nsPrefix }}"
23 spec:
24   selector:
25     matchLabels:
26       app: esr-esrserver
27   template:
28     metadata:
29       labels:
30         app: esr-esrserver
31       name: esr-esrserver
32     spec:
33       containers:
34       - name: esr-esrserver
35         image: {{ .Values.esrserver.image }}
36         imagePullPolicy: {{ .Values.pullPolicy }}
37         env:
38         - name: MSB_ADDR
39           value: {{ tpl .Values.msbaddr . }}
40         volumeMounts:
41         - name: localtime
42           mountPath: /etc/localtime
43           readOnly: true
44         - mountPath: /home/esr/works/logs
45           name: esr-server-logs
46         ports:
47         - containerPort: {{ .Values.esrserver.port }}
48         readinessProbe:
49           tcpSocket:
50             port: {{ .Values.esrserver.port }}
51           initialDelaySeconds: 5
52           periodSeconds: 10
53       - name: filebeat-onap-esr-server
54         image: {{ .Values.filebeat.image }}
55         imagePullPolicy: {{ .Values.pullPolicy }}
56         volumeMounts:
57         - mountPath: /usr/share/filebeat/filebeat.yml
58           subPath: filebeat.yml
59           name: filebeat-conf
60         - mountPath: /home/esr/works/logs
61           name: esr-server-logs
62         - mountPath: /usr/share/filebeat/data
63           name: esr-server-filebeat
64       volumes:
65       - name: localtime
66         hostPath:
67           path: /etc/localtime
68       - name: filebeat-conf
69         configMap:
70           name: esr-filebeat-configmap
71       - name: esr-server-logs
72         emptyDir: {}
73       - name: esr-server-filebeat
74         emptyDir: {}
75 #{{ end }}