diff options
author | rui hu <hu.rui2@zte.com.cn> | 2018-04-10 08:32:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-10 08:32:43 +0000 |
commit | dbd58e9b93d22887be02f17ea99370f140c390e9 (patch) | |
tree | 53a7fb88aab808b14ec1aff111162bd7c0b0cfb9 /kubernetes/msb/charts/msb-iag/templates/deployment.yaml | |
parent | cdda4e20f3904dcb193625350c91d596a0bc4197 (diff) | |
parent | 4dd8e1197468f6ee883398006e92dc9e17dae21a (diff) |
Merge "Add a filebeat container to each service of MSB"
Diffstat (limited to 'kubernetes/msb/charts/msb-iag/templates/deployment.yaml')
-rw-r--r-- | kubernetes/msb/charts/msb-iag/templates/deployment.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kubernetes/msb/charts/msb-iag/templates/deployment.yaml b/kubernetes/msb/charts/msb-iag/templates/deployment.yaml index 2df82aca59..7ca8a8e203 100644 --- a/kubernetes/msb/charts/msb-iag/templates/deployment.yaml +++ b/kubernetes/msb/charts/msb-iag/templates/deployment.yaml @@ -65,6 +65,8 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true + - mountPath: /usr/local/apiroute-works/logs + name: msb-discovery-logs resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.nodeSelector }} @@ -75,9 +77,22 @@ spec: affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + # side car containers + - name: filebeat-onap + image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + volumeMounts: + - mountPath: /var/log/onap + name: msb-discovery-logs + - mountPath: /usr/share/filebeat/data + name: msb-discovery-filebeat volumes: - name: localtime hostPath: path: /etc/localtime + - name: msb-discovery-logs + emptyDir: {} + - name: msb-discovery-filebeat + emptyDir: {} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |