Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating kubernetes helm values

I'd like to update a value config for a helm release on my cluster.

Something like

helm update -f new_values.yml nginx-controller

like image 563
Stan Bondi Avatar asked Feb 22 '18 12:02

Stan Bondi


People also ask

How do I update my local Helm repository?

Information is cached locally, where it is used by commands like 'helm search'. You can optionally specify a list of repositories you want to update. $ helm repo update <repo_name> ... To update all the repositories, use 'helm repo update'.


1 Answers

helm upgrade -f ingress-controller/values.yml nginx-ingress stable/nginx-ingress 

Or more generally:

helm upgrade -f new-values.yml {release name} {package name or path} --version {fixed-version} 

The command above does the job.

Unless you manually specify the version with the --version {fixed-version} argument, upgrade will also update the chart version. You can find the current chart version with helm ls.

Docs: https://helm.sh/docs/helm/#helm-upgrade

like image 193
Stan Bondi Avatar answered Sep 21 '22 12:09

Stan Bondi