log-pilot(logpilot)搜集k8s应用容器日志—详细文档
相关配套软件包网盘下载链接如下:
网盘地址: https://url28.ctfile.com/f/37115828-599524530-7be0b5?p=4907
访问密码:4907
1.准备k8s集群(192.168.60.128,192.168.60.129,192.168.60.130)
[root@k8s-master mnt]# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-master Ready control-plane,master 79d v1.20.4
k8s-node1 Ready 79d v1.20.4
k8s-node2 Ready 79d v1.20.4
2.准备es和kibana收集日志系统(es7.13和kibana7.13),在192.168.60.131上安装
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
540a10135717 tomcat:7.0 “catalina.sh run” About an hour ag Up About an hour 8080/tcp test
ecf39ea8f61d docker.elastic.co/kibana/kibana:7.13.2 “/bin/tini – /usr/l…” About an hour ago Up About an hour 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana
7d96469f2eda elasticsearch:7.13.2 “/bin/tini – /usr/l…” About an