kubernetes fluent-bit 日志收集
来源:原创
时间:2019-08-13
作者:脚本小站
分类:云原生
kubernetes日志收集方案:
https://kubernetes.io/zh/docs/concepts/cluster-administration/logging/
官方文档:fluent-bit --> elasticsearch
https://docs.fluentbit.io/manual/installation/kubernetes
部署:
kubectl create namespace logging kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role.yaml kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-configmap.yaml kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds.yaml
只要修改 fluent-bit-ds.yaml 中 env.name 的变量值 FLUENT_ELASTICSEARCH_HOST 将value值改为可用的elasticsearch即可。
官方gitHub:fluent-bit --> kafka
https://github.com/fluent/fluent-bit-kubernetes-logging