blob: 3f00edcc915eec3ee3a2bff09b69a9b9b2e8ef7c [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
Lizi91164812017-12-16 15:28:57 +080015#{{ if not .Values.disableUuiUui }}
16apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: esr-esrserver
21 name: esr-esrserver
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +080023spec:
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:
LiZid87e8b82018-03-14 22:07:08 -040034 - name: esr-esrserver
35 image: {{ .Values.esrserver.image }}
Lizi91164812017-12-16 15:28:57 +080036 imagePullPolicy: {{ .Values.pullPolicy }}
Lizi91164812017-12-16 15:28:57 +080037 env:
38 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 value: {{ tpl .Values.msbaddr . }}
LiZid87e8b82018-03-14 22:07:08 -040040 volumeMounts:
41 - name: localtime
42 mountPath: /etc/localtime
43 readOnly: true
44 - mountPath: /home/esr/works/logs
45 name: esr-server-logs
Lizi91164812017-12-16 15:28:57 +080046 ports:
47 - containerPort: {{ .Values.esrserver.port }}
48 readinessProbe:
49 tcpSocket:
50 port: {{ .Values.esrserver.port }}
51 initialDelaySeconds: 5
52 periodSeconds: 10
LiZid87e8b82018-03-14 22:07:08 -040053 - 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: {}
BorislavG8bfc6cf2018-02-27 15:04:26 +000075#{{ end }}