Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm list all installed charts

How can I list, show all the charts installed by helm on a K8s? If I run helm in a newly installed Ubuntu I cannot see which repos were used before to install the charts.

Kind of

helm show all *



Can I somehow export the helm's repository list and history from previously used server to the new ubuntu server? Where does helm keep the which repository installed etc?

Old ubuntu server

Helm repo list
NAME            URL
gitlab          https://charts.gitlab.io/
harbor          https://helm.goharbor.io
bitnami         https://charts.bitnami.com/bitnami

The New ubuntu server

Helm repo list
NAME            URL

Thanks in advance

like image 835
Kenot Solutions Avatar asked Jan 16 '21 00:01

Kenot Solutions


People also ask

Where are my Helm charts?

The official Helm repo URL is https://kubernetes-charts.storage.googleapis.com . This repo is mainteined on GitHub and it's URL is https://github.com/helm/charts. So the best approach is to clone the official repo github and work on it locally.


Video Answer


2 Answers

How can I list, show all the charts installed by helm on a K8s?

helm list --all-namespaces

Where does helm keep the which repository installed etc?

By default in Secret objects in the same namespace as the release, but this can be changed.

Can I somehow export the helm's repository list and history

Not really. You can use helm get values to get the set of values a particular release was installed with. I don't believe there's an option to tell you where the chart originally came from.

Rather than trying to export this information from a cluster, a better approach is to make sure you have a copy of the information you need to recreate it in source control. If the cluster state is small enough, you can try recreating it on a desktop-based Kubernetes installation (Docker Desktop, minikube, kind) for test purposes. This could be a directory of shell scripts with install commands and matching value YAML files; there are also higher-level tools like Helmsman and Helmfile that try to maintain an installation of several charts together.

like image 101
David Maze Avatar answered Oct 28 '22 03:10

David Maze


helm list -A
  • A is for listing all namespaces
like image 5
csaju Avatar answered Oct 28 '22 01:10

csaju