Search code examples
kubernetesprometheuskubernetes-helmprometheus-operator

kube-prometheus-stack Upgrade Prometheus Version


I installed kube-prometheus-stack in here. I noticed the Prometheus has the version of 1.7. I am wondering how can I upgrade it to 2.0or up?

I used helm install latest prometheus-community/kube-prometheus-stack to install kube-prometheus-stack.

Thanks!


Solution

  • Maybe your chart repository is not updated.

    Update your chart repo:

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

    Varify:

    $ 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...
    

    Now try installing again:

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

    You will have Prometheus of version v2.22.0.