如何解决使用 Metricbeat Keystore 但它不起作用 (Metricbeat v6.6.0)?
我正在尝试在我的 metricbeatbeat 配置中使用密钥库值,但我似乎无法让它工作......
我已经创建了 initContainer,因为我只是在创建密钥库并在 ES_PWD 中添加我的 elasticsearch 密码!
metricbeat --path.config=/usr/share/metricbeat/keystore -c /etc/metricbeat.yml keystore create
echo 'my-ES-clear-text-pwd' | metricbeat --path.config=/usr/share/metricbeat/keystore -c /etc/metricbeat.yml keystore add ES_PWD --stdin --force
metricbeat --path.config=/usr/share/metricbeat/keystore -c /etc/metricbeat.yml keystore list
[在 initContainer 和实际容器之间共享卷!]
在实际的 metricbeat 容器中尝试运行 metricbeat 服务但它没有启动。 (./metricbeat --path.config=/usr/share/metricbeat/keystore -c /etc/metricbeat.yml -e)
然而 pod 正在运行,但 metricbeat 服务并未在其中启动!
如果我执行到 pod 并手动复制 metricbeat.keystore,如果我尝试手动运行 metricbeat 服务,那么它正在运行。
我发现了一个类似的问题:https://discuss.elastic.co/t/using-keystores-not-working-v6-6-0/167301
但是,我无法每次都手动执行此操作,因为我的 metricbeat pod 部署为守护进程并部署在我的 K8s 集群中。
提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。