TKE上搭建EFK日志采集系统

本篇文章介绍了如何在TKE集群中搭建EFK日志采集系统来采集集群日志。

创建新的namespace

创建一个新的namespace为logging,该命名空间来部署EFK

upload-image

创建ES的svc

upload-image

创建ES的StatefulSet资源

创建StorageClass

需要创建一个SC,用来后续ES创建时候动态挂载PVC,在腾讯云中,如果挂载了卷,又起了多个pod,可以采用自动动态挂载PVC

upload-image

在资源中通过volumeClaimTemplates自动常见PV来挂载PVC

创建StatefulSet

upload-image

创建kibana服务

upload-image
upload-image

通过http://任意节点ip:31020访问kibana界面

upload-image

部署Fluentd

添加fluentd的配置文件

upload-image

部署fluentd

fluentdt需要收集所有节点的日志,所以通过deamonset的方式部署

upload-image

最后更新于

这有帮助吗?