summaryrefslogtreecommitdiffstats
path: root/kubernetes/esr/templates/esr-esrserver-deployment.yaml
diff options
context:
space:
mode:
authorrui hu <hu.rui2@zte.com.cn>2018-03-22 07:29:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-22 07:29:08 +0000
commitb7f023225048446d60b0905c0fe41171d358d5ec (patch)
tree320939fccde34444d2aaae5fd192fee04d82e7ae /kubernetes/esr/templates/esr-esrserver-deployment.yaml
parent2aed2c930640acb5d6947ee8b7e649c67208b186 (diff)
parentd87e8b869b03cf85dcebc3d817f64d265b9ba98d (diff)
Merge "Add a filebeat container together with esr-server"
Diffstat (limited to 'kubernetes/esr/templates/esr-esrserver-deployment.yaml')
-rw-r--r--kubernetes/esr/templates/esr-esrserver-deployment.yaml34
1 files changed, 30 insertions, 4 deletions
diff --git a/kubernetes/esr/templates/esr-esrserver-deployment.yaml b/kubernetes/esr/templates/esr-esrserver-deployment.yaml
index 386d4014e4..a591a7e04c 100644
--- a/kubernetes/esr/templates/esr-esrserver-deployment.yaml
+++ b/kubernetes/esr/templates/esr-esrserver-deployment.yaml
@@ -17,12 +17,18 @@ spec:
name: esr-esrserver
spec:
containers:
- - image: {{ .Values.esrserver.image }}
+ - name: esr-esrserver
+ image: {{ .Values.esrserver.image }}
imagePullPolicy: {{ .Values.pullPolicy }}
- name: esr-esrserver
env:
- name: MSB_ADDR
value: {{ tpl .Values.msbaddr . }}
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
+ - mountPath: /home/esr/works/logs
+ name: esr-server-logs
ports:
- containerPort: {{ .Values.esrserver.port }}
readinessProbe:
@@ -30,6 +36,26 @@ spec:
port: {{ .Values.esrserver.port }}
initialDelaySeconds: 5
periodSeconds: 10
- imagePullSecrets:
- - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+ - name: filebeat-onap-esr-server
+ image: {{ .Values.filebeat.image }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ volumeMounts:
+ - mountPath: /usr/share/filebeat/filebeat.yml
+ subPath: filebeat.yml
+ name: filebeat-conf
+ - mountPath: /home/esr/works/logs
+ name: esr-server-logs
+ - mountPath: /usr/share/filebeat/data
+ name: esr-server-filebeat
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
+ - name: filebeat-conf
+ configMap:
+ name: esr-filebeat-configmap
+ - name: esr-server-logs
+ emptyDir: {}
+ - name: esr-server-filebeat
+ emptyDir: {}
#{{ end }}