artifacthub.io references charts that are hosted in other repositories, and therefore, cannot be used directly when retrieving helm charts.
To install a chart from artifacthub.io via Artifactory:
-
Navigate to the chart's page on artifacthub.io. For this demonstration we'll use the kubernetes-dashboard chart.
-
Look for the "helm repo add" command to see the URL for the repository that stores this chart. For the kubernetes-dashboard chart, the repository URL is "https://kubernetes.github.io/dashboard/".
-
In case you don't have a Remote Helm Repository in Artifactory pointing to the URL from step #2, create one.
-
Make sure the remote repository from step #3 is included in a Helm Virtual Repository. If not, make sure to have it included in one which we will later use to pull from.
-
Set your default Artifactory Helm repository using the following command:
$ helm repo add <VIRTUAL_REPO> <JFROG_URL>/artifactory/api/helm/<VIRTUAL_REPO> --username <USERNAME> --password <PASSWORD>
-
Run:
$ helm repo update
-
To install the chart:
$ helm install <CHART_NAME> <VIRTUAL_REPO>/<CHART_NAME>
Example:
$ helm install kubernetes-dashboard helm-virtual/kubernetes-dashboard
After installation, the chart can be seen in the remote-cache repository of the remote repository the chart was retrieved from:
