Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

how to add helm hub repo with helm 3.x #208

Closed
streamnsight opened this issue Dec 13, 2019 · 7 comments
Closed

how to add helm hub repo with helm 3.x #208

streamnsight opened this issue Dec 13, 2019 · 7 comments

Comments

@streamnsight
Copy link

I can't seem to figure how to install the hub.helm.sh as a repo, or any sub repositories for that matter, with helm 3.0.0

$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

What am I doing wrong?

helm search hub works fine
helm repo list is empty as expected according to the helm 3.x docs

I'm trying to install the stable/redis-ha chart for example.

The web page says run:

helm install stable/redis-ha --version 4.1.5

but that seems to be the helm 2.x syntax as I get:

Error: must either provide a name or specify --generate-name

If I run:

helm install redis-ha stable/redis-ha --version 4.1.5
Error: failed to download "stable/redis-ha" (hint: running `helm repo update` may help)

Yeah, right, Helm 3.x doesn't include any repo to begin with, so I'm trying to add the repo with:

helm repo add redis-ha https://hub.helm.sh/charts/stable/redis-ha
Error: looks like "https://hub.helm.sh/charts/stable/redis-ha" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context

It seems like this is getting me the HTML index page of the website, not the index.yaml

If I try installing the root repo:

helm repo add hub https://hub.helm.sh/charts
Error: looks like "https://hub.helm.sh/charts" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context

Same thing

So, how am I supposed to install those charts?
Is it just that the format is not compatible, and the provider needs to update their repo?

I tried a few charts and can't get anyone to work.

I can't be the only one with this issue.

@rimusz
Copy link
Contributor

rimusz commented Dec 14, 2019

hub.helm.sh is not the helm repo, so it will not work the you trying, it is only meant to view and search for charts.
check in there for chart repository and it that way, then you will be able to install the charts.

@scottrigby
Copy link
Member

scottrigby commented Dec 17, 2019

@streamnsight You want to do:

helm repo add stable https://kubernetes-charts.storage.googleapis.com/

See the The Chart Repository Guide for more info on repositories and context.

This will be clarified from the Hub UI once #210 is fixed

@streamnsight
Copy link
Author

Thanks for the answer. This is not obvious anywhere. Even in this #210 ticket, i don't see how it explains how to install the repo.
It should explain the above.

@ekhaydarov
Copy link

ekhaydarov commented Jan 13, 2020

Yep this is really confusing. The official docs show no explanation how to get from helm search repo which shows hub.helm.sh to helm repo add which magically shows the a new url to use. There is no suggestion of how to find the new urls since search shows hub.helm.sh

Not sure what the issue here is? its a simple update to the docs until there is a fix for adding the default repo

@ThorstenHans
Copy link

It would be really helpful to expose the repo URL when using helm search hub.

Users would be able to add the repo right from CLI without interrupting their workflow.

@SimonHeimberg
Copy link

It would be really helpful to expose the repo URL when using helm search hub.

Users would be able to add the repo right from CLI without interrupting their workflow.

Totally agree. See helm/helm#7419

@whatthefrog
Copy link

to build on @scottrigby comment

command can be found in the readme here
https://github.com/helm/charts#how-do-i-enable-the-stable-repository-for-helm-3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants