helm 安装 loki-stack 与 kube-prometheus-stack

发布于 2024-01-21  7 次阅读


kube-prometheus-stack

最好不要用里面kube-prometheus-stack的grafana,否则grafana会和prometheus用同一个目录
单独安装grafana最好

helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
--namespace monitor \
--reuse-values \
--set prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.storageClassName="longhorn" \
--set prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.accessModes[0]="ReadWriteOnce" \
--set prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.resources.requests.storage="10Gi"

loki-stack

helm upgrade --install loki grafana/loki-stack \
--namespace monitor \
--set loki.persistence.enabled=true \
--set loki.persistence.storageClassName=longhorn \
--set loki.persistence.size=10Gi \
--set 'promtail.tolerations[0].key=CriticalAddonsOnly' \
--set 'promtail.tolerations[0].operator=Exists' \
--set 'promtail.tolerations[0].effect=NoExecute' \
--set 'promtail.tolerations[1].key=node-role.kubernetes.io/control-plane' \
--set 'promtail.tolerations[1].operator=Exists' \
--set 'promtail.tolerations[1].effect=NoSchedule' \
--set config.compactor.retention_delete_delay=2208h 
僕と契約して、魔法少女になってよ!
最后更新于 2024-01-25