问题描述
我正在为 filebeat 使用这个官方掌舵图:
https://artifacthub.io/packages/helm/elastic/filebeat
我的系统上有自己的 filebeat 模块,例如:
- module
- _Meta
- fields.yaml
- error_logs
- config
-log.yaml
这不是确切的结构。只是让您了解它的嵌套性质。
现在如何将它作为配置映射挂载到 filebeats 上?
我试着做:
kubectl create configmap filebeats-module --from-file filebeats-module/
但生成的配置映射看起来不正确:
apiVersion: v1
data:
module.yml: |+
dashboards:
kind: ConfigMap
Metadata:
creationTimestamp: "2021-01-12T15:56:13Z"
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
.: {}
f:module.yml: {}
manager: kubectl-create
operation: Update
time: "2021-01-12T15:56:13Z"
name: filebeats-module
namespace: logging
resourceVersion: "10611775"
selfLink: /api/v1/namespaces/logging/configmaps/filebeats-module
uid: 8a6e9309-b34d-4399-8386-ad02a5f25fa3
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)