mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Filebeat k8s fix (#4408)
* upgrade filebeat to 6.2.3 to prevent k8s metadata infinite loop * fix filebeat /var/log and drop seperate prospectors configuration * fix linting
This commit is contained in:
committed by
k8s-ci-robot
parent
ede96813ff
commit
fa18254696
@@ -2,8 +2,8 @@ apiVersion: v1
|
||||
description: A Helm chart to collect Kubernetes logs with filebeat
|
||||
icon: https://www.elastic.co/assets/blt47799dcdcf08438d/logo-elastic-beats-lt.svg
|
||||
name: filebeat
|
||||
version: 0.1.0
|
||||
appVersion: 6.2.2
|
||||
version: 0.1.1
|
||||
appVersion: 6.2.3
|
||||
sources:
|
||||
- https://www.elastic.co/guide/en/beats/filebeat/current/index.html
|
||||
maintainers:
|
||||
|
||||
@@ -43,24 +43,24 @@ spec:
|
||||
mountPath: /usr/share/filebeat/filebeat.yml
|
||||
readOnly: true
|
||||
subPath: filebeat.yml
|
||||
- name: prospectors-config
|
||||
mountPath: /usr/share/filebeat/prospectors.d
|
||||
readOnly: true
|
||||
- name: data
|
||||
mountPath: /usr/share/filebeat/data
|
||||
- name: varlog
|
||||
mountPath: /var/log
|
||||
readOnly: true
|
||||
- name: varlibdockercontainers
|
||||
mountPath: /var/lib/docker/containers
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: varlog
|
||||
hostPath:
|
||||
path: /var/log
|
||||
- name: varlibdockercontainers
|
||||
hostPath:
|
||||
path: /var/lib/docker/containers
|
||||
- name: filebeat-config
|
||||
secret:
|
||||
secretName: {{ template "filebeat.fullname" . }}
|
||||
- name: prospectors-config
|
||||
configMap:
|
||||
name: {{ template "filebeat.fullname" . }}-prospectors
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /var/lib/filebeat
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "filebeat.fullname" . }}-prospectors
|
||||
labels:
|
||||
app: {{ template "filebeat.name" . }}
|
||||
chart: {{ template "filebeat.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
kubernetes.yml: |-
|
||||
- type: docker
|
||||
containers.ids:
|
||||
- "*"
|
||||
processors:
|
||||
- add_kubernetes_metadata:
|
||||
in_cluster: true
|
||||
@@ -1,6 +1,6 @@
|
||||
image:
|
||||
repository: docker.elastic.co/beats/filebeat
|
||||
tag: 6.2.2
|
||||
tag: 6.2.3
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
config:
|
||||
@@ -22,10 +22,17 @@ config:
|
||||
- type: log
|
||||
enabled: true
|
||||
paths:
|
||||
- /var/log/**
|
||||
exclude_files:
|
||||
- '(\.[0-9]{1,})$'
|
||||
- templates/clusterrolebinding.yaml'.gz$'
|
||||
- /var/log/*.log
|
||||
- type: docker
|
||||
containers.ids:
|
||||
- "*"
|
||||
processors:
|
||||
- add_kubernetes_metadata:
|
||||
in_cluster: true
|
||||
- drop_event:
|
||||
when:
|
||||
equals:
|
||||
kubernetes.container.name: "filebeat"
|
||||
|
||||
output.file:
|
||||
path: "/usr/share/filebeat/data"
|
||||
|
||||
Reference in New Issue
Block a user