我在使用filebeat收集日志,希望使用ConfigMap里面的filebeat.yml来替换自带的/usr/share/filebeat/filebeat.yml。请问该如何设置?
Filebeat配置目录
sh-4.2$ pwd
/usr/share/filebeat
sh-4.2$ ls -l
total 126000
-rw-r--r-- 1 root root 13675 Aug 26 09:17 LICENSE.txt
-rw-r--r-- 1 root root 8586842 Aug 26 09:17 NOTICE.txt
-rw-r--r-- 1 root root 811 Aug 26 09:17 README.md
drwxrwxr-x 1 root root 60 Sep 15 04:05 data
-rw-r--r-- 1 root root 3679905 Aug 26 09:17 fields.yml
-rwxr-xr-x 1 root root 116554640 Aug 26 09:17 filebeat
-rw-r--r-- 1 root root 163106 Aug 26 09:17 filebeat.reference.yml
-rw-r--r-- 1 root root 319 Aug 26 09:17 filebeat.yml
drwxr-xr-x 3 root root 15 Aug 26 09:17 kibana
drwxrwxr-x 2 root root 6 Aug 26 09:17 logs
drwxr-xr-x 76 root root 4096 Aug 26 09:17 module
drwxrwxr-x 2 root root 4096 Aug 26 09:17 modules.d
ConfigMap配置

应用配置模版
