BetaThis is a live doc! Anyone with edit access can make updates in real time without having to publish.
Edited Apr 25
创建一个 monitoring-values.yaml 文件,写入如下内容【必要,否则部署的版本会无法正常工作】
prometheus:
prometheusSpec:
podMonitorSelectorNilUsesHelmValues: false
ruleSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
probeSelectorNilUsesHelmValues: false然后执行
helm repo add cnpg https://prometheus-community.github.io/helm-charts
helm upgrade --install monitoring --version 70.0.2 \
--namespace monitoring \
--create-namespace \
-f monitoring-values.yaml
prometheus-community/kube-prometheus-stack