gpt4 book ai didi

logging - 如何使用K8S_HOST_URL,以及在EFK中需要什么

转载 作者:行者123 更新时间:2023-12-02 12:08:06 24 4
gpt4 key购买 nike



EFK中的K8S_HOST_URL配置参数的目的是什么?在EFK中,K8S_HOST_URL作为环境变量存在,并且看起来像是在fluentd配置的filter-k8s-meta.conf中指定的那样通过fluentd与Kubernetes API服务器通信。

在寻找文档,但不在OpenShift Aggregating Container Logs文档中。在Google中搜索,但找不到明确的答案。

请提出详细解释的文档。

最佳答案

第一个“K8S_HOST_URL”未显示在 elastic/elasticsearch fluent/fluentd elastic/kibana 中(“EFK”中的3个项目)

它的确仅显示在 openshift/origin-aggregated-logging 中,它是带有日志记录堆栈组件的镜像定义以及用于构建和部署它们的工具的存储库。

因此,这似乎就是Openshift(通过Kubernetes)部署其堆栈的方式,它将对其进行监视(请参阅“Collect and store Kubernetes events”)

另请参见“mux-logging service”(仍然来自 openshift/origin-aggregated-logging ):

Fluentd gets Kubernetes metadata to enrich each container log message with the namespace UUID, the pod UUID, and pod labels and annotations.

关于logging - 如何使用K8S_HOST_URL,以及在EFK中需要什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47616055/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com