Rancher Logging HostTailer
HostTailer 可以用于收集节点级别的日志,例如在节点中的一些日志文件、systemd 日志等。
创建好 HostTailer 后,对应的命名空间下会生成一个 FluentBit DaemonSet,进行节点层面日志的收集。
收集 RKE2 Systemd 日志
配置如下:
1 | apiVersion: logging-extensions.banzaicloud.io/v1alpha1 |
不指定 FluentBit 镜像的话,默认会去到 Docker Hub 中拉取。
收集 Systemd 本身的日志
在 Linux 可以通过 journalctl SYSLOG_IDENTIFIER=systemd
查看 systemd[1]
相关的日志,HostTailer 也可以通过相同的原理进行收集:
1 | apiVersion: logging-extensions.banzaicloud.io/v1alpha1 |
Rancher Logging HostTailer
https://warnerchen.github.io/2025/06/18/Rancher-Logging-HostTailer/
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.