-
编辑
/etc/kubez/globals.yml
-
取消
enable_promtail: "no"
的注释,并设置为"yes"
,loki_url配置为loki的服务端url。################## # promtail Options ################## enable_promtail: "yes" # Loki server url for push loki_url: http://loki-gateway/loki/api/v1/push
-
执行安装命令(根据实际情况选择)
# 单节点集群场景 kubez-ansible apply # 高可用集群场景 kubez-ansible -i multinode apply
-
部署完验证
[root@VM-16-13-centos ~]# kubectl get pods -n pixiu-system|grep promtail promtail-jzg96 1/1 Running 0 179m promtail-q829g 1/1 Running 0 179m