Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[AAI] Deploy latest AAI images
[oom.git]
/
kubernetes
/
common
/
common
/
templates
/
_log.tpl
diff --git
a/kubernetes/common/common/templates/_log.tpl
b/kubernetes/common/common/templates/_log.tpl
index
dc714ae
..
993c482
100644
(file)
--- a/
kubernetes/common/common/templates/_log.tpl
+++ b/
kubernetes/common/common/templates/_log.tpl
@@
-27,14
+27,23
@@
mountPath: {{ .Values.log.path }}
- name: filebeat-data
mountPath: /usr/share/filebeat/data
mountPath: {{ .Values.log.path }}
- name: filebeat-data
mountPath: /usr/share/filebeat/data
+ resources:
+ requests:
+ cpu: "10m"
+ memory: "5Mi"
+ limits:
+ cpu: "100m"
+ memory: "20Mi"
{{- end -}}
{{- end -}}
{{- define "common.log.volumes" -}}
{{- end -}}
{{- end -}}
{{- define "common.log.volumes" -}}
-{{- if .Values.global.centralizedLoggingEnabled }}
+{{- $dot := default . .dot }}
+{{- if $dot.Values.global.centralizedLoggingEnabled }}
+{{- $configMapName := printf "%s-filebeat" (default (include "common.fullname" $dot) .configMapNamePrefix) }}
- name: filebeat-conf
configMap:
- name: filebeat-conf
configMap:
- name: {{
include "common.fullname" . }}-filebeat
+ name: {{
$configMapName }}
- name: filebeat-data
emptyDir: {}
{{- end -}}
- name: filebeat-data
emptyDir: {}
{{- end -}}