How to install a specific Chart version

MasterScrat picture MasterScrat · Jul 6, 2018 · Viewed 35.9k times · Source

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?

Answer

VonC picture VonC · Jul 6, 2018

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.