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 文件,写入如下内容【必要,否则部署的版本会无法正常工作】

1prometheus: 2 prometheusSpec: 3 podMonitorSelectorNilUsesHelmValues: false 4 ruleSelectorNilUsesHelmValues: false 5 serviceMonitorSelectorNilUsesHelmValues: false 6 probeSelectorNilUsesHelmValues: false

然后执行

1helm repo add cnpg https://prometheus-community.github.io/helm-charts 2helm upgrade --install monitoring --version 70.0.2 \ 3 --namespace monitoring \ 4 --create-namespace \ 5 -f monitoring-values.yaml 6 prometheus-community/kube-prometheus-stack