Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a specific Chart version

I am trying to install a previous version of Prometheus, namely version 6.7.4:

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

However it installs the latest version, 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 

What am I doing wrong?

like image 562
MasterScrat Avatar asked Jul 05 '18 22:07

MasterScrat


People also ask

What is helm upgrade install?

There are two ways to install Helm charts using the Helm CLI: helm install and helm upgrade --install . The install sub-command always installs a brand new chart, while the upgrade sub-command can upgrade an existing chart and install a new one, if the chart hasn't been installed before.


1 Answers

I see in the 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" } 

So just in case, do try with: --version v6.7.4 instead of --version 6.7.4.

like image 112
VonC Avatar answered Sep 21 '22 06:09

VonC