Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to push helm charts to JFrog Artifactory: 'not a valid chart repository' error

I am trying to add the helm repository to my JFrog account but it is giving me an error. I have created a remote repository.

How can I push using helm client?

helm repo add <key> https://ip/artifactory/<key> --username username --password password

Error: looks like "https://ip/artifactory/" is not a valid chart repository or cannot be reached: failed to fetch https://ip/artifactory//index.yaml : 401 Unauthorized


1 Answers

You cannot push to a remote repository. It's meant to proxy and cache remote repositories only. Not to allow you to push your artifacts to them via Artifactory.

If you look into the documentation, you'll see you need to have a virtual, local and remote helm repositories.

For example:

helm-local  -> your local repo
helm-remote -> your remote repo
helm        -> your virtual repo

For the virtual repository, you set the default deployment repository (where the charts you upload are pushed to). This would be the local repository you created.

Once you have them setup, you do the login against the virtual repository - https://ip/artifactory/helm. The helm repo add command uses this URL.

like image 122
Eldad Assis Avatar answered Oct 27 '25 03:10

Eldad Assis