Kenot Solutions
Kenot Solutions

Reputation: 507

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

Upvotes: 42

Views: 114515

Answers (4)

thiagowfx
thiagowfx

Reputation: 5690

From https://helm.sh/docs/helm/helm_list/:

By default, up to 256 items may be returned. To limit this, use the '--max' flag. Setting '--max' to 0 will not return all results. Rather, it will return the server's default, which may be much higher than 256. Pairing the '--max' flag with the '--offset' flag allows you to page through results.

Therefore remember to pass a large integer value to max if you really want to list all charts: helm ls -A --max 9999.

Upvotes: 0

Paul Hodges
Paul Hodges

Reputation: 15246

While no guarantee, if you are just researching, you can helm repo list too.

Once you have done helm list ... you can also helm search repo <chart> for your chart name. If it's only available in one repo, you probably have the right one.

Just be aware that it isn't actually asking k8s which repo was used to deploy a given chart; it's just asking where you can find it now.

Upvotes: 0

csaju
csaju

Reputation: 394

helm list -A
  • A is for listing all namespaces

Upvotes: 21

David Maze
David Maze

Reputation: 158657

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.

Upvotes: 60

Related Questions