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

浙公网安备 33010602011771号