blob: a591a7e04c28967b75a85ec0cff86df7c98dca34 [file] [log] [blame]
Lizi91164812017-12-16 15:28:57 +08001#{{ if not .Values.disableUuiUui }}
2apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: esr-esrserver
7 name: esr-esrserver
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Lizi91164812017-12-16 15:28:57 +08009spec:
10 selector:
11 matchLabels:
12 app: esr-esrserver
13 template:
14 metadata:
15 labels:
16 app: esr-esrserver
17 name: esr-esrserver
18 spec:
19 containers:
LiZid87e8b82018-03-14 22:07:08 -040020 - name: esr-esrserver
21 image: {{ .Values.esrserver.image }}
Lizi91164812017-12-16 15:28:57 +080022 imagePullPolicy: {{ .Values.pullPolicy }}
Lizi91164812017-12-16 15:28:57 +080023 env:
24 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 value: {{ tpl .Values.msbaddr . }}
LiZid87e8b82018-03-14 22:07:08 -040026 volumeMounts:
27 - name: localtime
28 mountPath: /etc/localtime
29 readOnly: true
30 - mountPath: /home/esr/works/logs
31 name: esr-server-logs
Lizi91164812017-12-16 15:28:57 +080032 ports:
33 - containerPort: {{ .Values.esrserver.port }}
34 readinessProbe:
35 tcpSocket:
36 port: {{ .Values.esrserver.port }}
37 initialDelaySeconds: 5
38 periodSeconds: 10
LiZid87e8b82018-03-14 22:07:08 -040039 - name: filebeat-onap-esr-server
40 image: {{ .Values.filebeat.image }}
41 imagePullPolicy: {{ .Values.pullPolicy }}
42 volumeMounts:
43 - mountPath: /usr/share/filebeat/filebeat.yml
44 subPath: filebeat.yml
45 name: filebeat-conf
46 - mountPath: /home/esr/works/logs
47 name: esr-server-logs
48 - mountPath: /usr/share/filebeat/data
49 name: esr-server-filebeat
50 volumes:
51 - name: localtime
52 hostPath:
53 path: /etc/localtime
54 - name: filebeat-conf
55 configMap:
56 name: esr-filebeat-configmap
57 - name: esr-server-logs
58 emptyDir: {}
59 - name: esr-server-filebeat
60 emptyDir: {}
BorislavG8bfc6cf2018-02-27 15:04:26 +000061#{{ end }}