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!
The default value for the Prometheus version used in the kube-prometheus-stack Helm chart is v2.22.0, as you can see here.
So, you don't need to do anything special to get Prometheus 2+. If you get Prometheus 1.7, this value is most probably overwritten in your values.yaml file.
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 updateVarify:
$ 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-stackYou will have Prometheus of version v2.22.0.