Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Helm not considering my remote repo

I am using helm 2.6.1 to deploy a package to my kubernetes cluster. I have created a nexus raw repository to host the packaged helm charts. I also have the index file uploaded to the same.

--charts
 - wordpress-0.1.0.tgz
 - index.yaml

However, when I try to do a helm install, it never finds the package. I have tried all the below ways. Any other options to try?

+ helm repo list
  NAME      URL                                                                          
  stable    https://kubernetes-charts.storage.googleapis.com                             
  local     http://127.0.0.1:8879/charts                                                 
  helm-repo https://admin:[email protected]/repository/kubecharts/charts

+ helm repo update

Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "helm-repo" chart repository
...Unable to get an update from the "stable" chart repository 
(https://kubernetes-charts.storage.googleapis.com):
Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp: 
lookup kubernetes-charts.storage.googleapis.com on 10.00.0.00:53: no such 
host
Update Complete. ⎈ Happy Helming!⎈ 

+ helm search wordpress-0.1.0.tgz
  WARNING: Repo "stable" is corrupt or missing. Try 'helm repo update'.No 
  results found

+ helm search helm-repo/wordpress-0.1.0.tgz
  WARNING: Repo "stable" is corrupt or missing. Try 'helm repo update'.No 
  results found

 + helm install helm-repo/wordpress-0.1.0.tgz
   Error: file "helm-repo/wordpress-0.1.0.tgz" not found
like image 868
swetad90 Avatar asked Aug 12 '18 04:08

swetad90


People also ask

How to resolve Helm charts from other helm chart repositories?

To resolve Helm charts from other local or remote Helm chart repositories, you'll need to aggregate them into a virtual Helm chart repository. Thereafter, Artifactory will generate an index.yaml for the packages from all aggregated repositories.

How do I remove a helm repository?

Remove a Helm repository by entering: The terminal prints out a confirmation message once the repository is removed. Note: Replace stable with the name of the repository you wish to remove. After reading this tutorial, you should know how to add, update, or remove Helm repositories.

How do I add a helm chart repository to Kubernetes?

A system running Ubuntu, Windows, or Mac. Access to a command line/terminal. A Kubernetes cluster installed. Helm installed and configured. The general syntax for adding a Helm chart repository is: To add official stable Helm charts, enter the following command: The terminal prints out a confirmation message when adding is complete:


1 Answers

You references the chart wrong way. Try helm search helm-repo/wordpress helm install helm-repo/wordpress

If you need to install particular version:

helm install helm-repo/wordpress --version=0.1.0

like image 71
abinet Avatar answered Sep 20 '22 02:09

abinet