在 k8s(kubernetes)中使用 Loki 进行日志监控
安装helm环境
[root@hello ~/yaml]#
[root@hello ~/yaml]# curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
[root@hello ~/yaml]# sudo apt-get install apt-transport-https --yes
[root@hello ~/yaml]# echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
deb https://baltocdn.com/helm/stable/debian/ all main
[root@hello ~/yaml]# sudo apt-get update
[root@hello ~/yaml]# sudo apt-get install helm
[root@hello ~/yaml]#添加安装下载源
安装loki日志系统
查看安装后是否完成
查看svc并修改类型
将svc设置为 type: NodePort
添加nginx应用
查看nginx的pod
测试访问
在grafana中添加源
查看日志
添加面板
最后更新于