kube-prometheus-stack 升级 Prometheus 版本
kube-prometheus-stack Upgrade Prometheus Version
我在 here 中安装了 kube-prometheus-stack。我注意到 Prometheus 的版本是 1.7。我想知道如何将它升级到 2.0 或更高版本?
我使用 helm install latest prometheus-community/kube-prometheus-stack
安装了 kube-prometheus-stack。
谢谢!
kube-prometheus-stack
Helm 图表中使用的 Prometheus 版本的默认值为 v2.22.0,如您所见here。
因此,您无需执行任何特殊操作即可获得 Prometheus 2+。如果您使用 Prometheus 1.7,这个值很可能会在您的 values.yaml
文件中被覆盖。
可能您的图表存储库未更新。
更新您的图表存储库:
$ 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
我在 here 中安装了 kube-prometheus-stack。我注意到 Prometheus 的版本是 1.7。我想知道如何将它升级到 2.0 或更高版本?
我使用 helm install latest prometheus-community/kube-prometheus-stack
安装了 kube-prometheus-stack。
谢谢!
kube-prometheus-stack
Helm 图表中使用的 Prometheus 版本的默认值为 v2.22.0,如您所见here。
因此,您无需执行任何特殊操作即可获得 Prometheus 2+。如果您使用 Prometheus 1.7,这个值很可能会在您的 values.yaml
文件中被覆盖。
可能您的图表存储库未更新。
更新您的图表存储库:
$ 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
.