k8s集群部署Loki

1. 安装helm

$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
$ chmod 700 get_helm.sh
$ ./get_helm.sh

2. 添加loki仓库

helm repo add grafana https://grafana.github.io/helm-charts
helm repo update

3. 创建namespace

kubectl create ns loki

4. 安装loki

helm upgrade --install loki grafana/loki-stack --set grafana.enabled=true --set grafana.service.type=NodePort -n loki

 

posted @ 2024-03-25 15:45  虾仁记得猪心  阅读(664)  评论(0)    收藏  举报