<p>Disclaimer: I'm new to Kubernetes and Helm.</p>

<p>I am trying to install a Helm chart using the brand new Helm Hub and for the life of me I can't figure out how this is supposed to work.</p>

<p>A new version of Helm (3.0) was released only a few months ago with significant changes, one of them is that it doesn't come with any repositories configured. Helm released the Helm Hub which is supposed to be a centralized service to find charts.</p>

<p>I am trying to install a CloudBees Jenkins chart. This is what I get when I search the hub:</p>

<pre><code>[me@localhost tmp]$ helm search hub cloudbees -o yaml
- app_version: 2.222.1.1
  description: The Continuous Delivery Solution for Enterprises
  url: https://hub.helm.sh/charts/cloudbees/cloudbees-core
  version: 3.12.0+80c17a044bc4
- app_version: 9.2.0.139827
  description: A Helm chart for CloudBees Flow
  url: https://hub.helm.sh/charts/cloudbees/cloudbees-flow
  version: 1.1.1
- app_version: 9.2.0.139827
  description: A Helm chart for CloudBees Flow Agent
  url: https://hub.helm.sh/charts/cloudbees/cloudbees-flow-agent
  version: 1.1.1
- app_version: 2.204.3.7
  description: CloudBees Jenkins Distribution provides development teams with a highly
    dependable, secure, Jenkins environment curated from the most recent supported
    Jenkins release. The distribution comes with a recommended catalog of tested plugins
    available through the CloudBees Assurance Program.
  url: https://hub.helm.sh/charts/cloudbees/cloudbees-jenkins-distribution
  version: 2.204.307
- app_version: 2.0.2
  description: Helm chart for sidecar injector webhook deployment
  url: https://hub.helm.sh/charts/cloudbees/cloudbees-sidecar-injector
  version: 2.0.2
</code></pre>

<p>So it looks like the chart I am looking for is available: <code>cloudbees-jenkins-distribution</code>.</p>

<p>However, I can't find any way to install from the hub or to add a repository based on the hub output. Some of the things I've tried:</p>

<pre><code>[me@localhost tmp]$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "gitlab" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 

[me@localhost tmp]$ helm install myJenkins cloudbees-jenkins-distribution
Error: failed to download "cloudbees-jenkins-distribution" (hint: running `helm repo update` may help)

[me@localhost tmp]$ helm repo add cbRepo https://hub.helm.sh/charts/cloudbees
Error: looks like "https://hub.helm.sh/charts/cloudbees" 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

[me@localhost tmp]$ helm repo add cbRepo https://hub.helm.sh/charts/cloudbees/cloudbees-jenkins-distribution
Error: looks like "https://hub.helm.sh/charts/cloudbees/cloudbees-jenkins-distribution" 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
</code></pre>

<p>The documentation really doesn't say much about how I'm supposed to go from the Helm Hub to an installed chart. What am I missing here?</p>

MisterStrickland
<p><strong>Helm Hub is NOT like a repo that you can add and install from it helm charts.</strong> It doesn't expose valid repos urls either. That's why you're getting the error message like below: </p>

<pre><code>Error: looks like "https://hub.helm.sh/charts/cloudbees" is not a valid chart repository ...
</code></pre>

<p>when you're trying to run <code>helm repo add</code> on <code>https://hub.helm.sh</code> based <strong>urls</strong>.</p>

<p>I know it may seem pretty confusing but it just works like that, by its very design. Please refer to <a href="https://github.com/helm/hub/issues/208" rel="noreferrer">this discussion</a> on <strong>Github</strong>. Specifically <a href="https://github.com/helm/hub/issues/208#issuecomment-565704879" rel="noreferrer">this comment</a> explains it a bit more and I hope it also answers your question:</p>

<blockquote>
  <p>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.</p>
</blockquote>

<p>Unfortunatelly the <a href="https://helm.sh/docs/intro/using_helm/#helm-search-finding-charts" rel="noreferrer">official helm documentation</a> doesn't explain it well enough. It mentions only:</p>

<blockquote>
  <p><code>helm search hub</code> searches the Helm Hub, which comprises helm charts
  from dozens of different repositories.</p>
</blockquote>

<p>But it shows <em>"no explanation how to get from <code>helm search repo</code> which shows <code>hub.helm.sh</code> to <code>helm repo add</code> which magically shows the a new url to use."</em> - as one user wrote in <a href="https://github.com/helm/hub/issues/208#issuecomment-573624005" rel="noreferrer">the thread</a> mentioned above.</p>
