【问题标题】:kube-prometheus-stack Upgrade Prometheus Versionkube-prometheus-stack 升级 Prometheus 版本
【发布时间】:2020-11-04 20:34:23
【问题描述】:

我在here 中安装了 kube-prometheus-stack。我注意到 Prometheus 的版本是 1.7。我想知道如何将其升级到 2.0 或更高版本?

我使用helm install latest prometheus-community/kube-prometheus-stack 安装了kube-prometheus-stack。

谢谢!

【问题讨论】:

    标签: kubernetes prometheus kubernetes-helm prometheus-operator


    【解决方案1】:

    也许您的图表存储库没有更新。

    更新您的图表存储库:

    $ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
    
    $ helm repo update
    

    验证:

    $ helm search repo prometheus-community/kube-prometheus-stack
    NAME                                        CHART VERSION   APP VERSION DESCRIPTION                                       
    prometheus-community/kube-prometheus-stack  11.0.0          0.43.0      kube-prometheus-stack collects Kubernetes manif...
    

    现在再次尝试安装:

    $ helm install latest prometheus-community/kube-prometheus-stack
    

    您将拥有版本为 v2.22.0 的 Prometheus。

    【讨论】:

      【解决方案2】:

      kube-prometheus-stack Helm 图表中使用的 Prometheus 版本默认值为 v2.22.0,如您所见here

      因此,您无需执行任何特殊操作即可获得 Prometheus 2+。如果您获得 Prometheus 1.7,则该值很可能会在您的 values.yaml 文件中被覆盖。

      【讨论】:

        猜你喜欢
        • 2022-08-05
        • 1970-01-01
        • 2021-04-30
        • 2022-10-04
        • 1970-01-01
        • 2022-08-16
        • 2022-11-09
        • 2021-09-06
        • 2021-05-12
        相关资源
        最近更新 更多