首页 文章

Helm:安装特定的Chart版本

提问于
浏览
2

我正在尝试安装以前版本的Prometheus,即版本 6.7.4

helm install -f stable/prometheus/values.yaml prometheus --name stable/prometheus --namespace prometheus --version 6.7.4

但是它会安装最新版本 prometheus-6.8.0

$ helm ls
NAME        REVISION    UPDATED                     STATUS      CHART               NAMESPACE 
prometheus  1           Fri Jul  6 01:46:42 2018    DEPLOYED    prometheus-6.8.0    prometheus

我究竟做错了什么?

1 回答

  • 4

    我在helm install code看到:

    # help provides possible cli installation arguments
    help () {
      echo "Accepted cli arguments are:"
      echo -e "\t[--help|-h ] ->> prints this help"
      echo -e "\t[--version|-v <desired_version>] . When not defined it defaults to latest"
      echo -e "\te.g. --version v2.4.0  or -v latest"
    }
    

    所以为了以防万一,请尝试使用: --version v6.7.4 而不是 --version 6.7.4 .

相关问题