neo4j-contrib / neo4j-helm

Helm Charts for running Neo4j on Kubernetes [DEPRECATED]
https://neo4j-contrib.github.io/neo4j-helm/user-guide/USER-GUIDE.html
Apache License 2.0
88 stars 81 forks source link

Expose neo4j-contrib/neo4j-helm as helm repository #16

Open aitorhh opened 4 years ago

aitorhh commented 4 years ago

I believe it would be good to add the deployment of the Charts to github pages or release page. Several options could be used:

Both, can be use in a CI/CD pipeline.

moxious commented 4 years ago

Thanks for this suggestion. I think it's a good one and I will take it on. Sorry for the tardy response - I'll get to this when I can.

moxious commented 4 years ago

Some updates on this; the tooling isn't integrated yet, but the repository index.yaml file was moved to the master branch, and Helm Hub is showing all recent releases ATM

moxious commented 4 years ago

Still needing to follow up on this. Additional report:

[user@localhost ~]$ helm repo add stable https://github.com/neo4j-contrib/neo4j-helm
Error: looks like "https://github.com/neo4j-contrib/neo4j-helm" is not a valid chart repository or cannot be reached: failed to fetch https://github.com/neo4j-contrib/neo4j-helm/index.yaml : 404 Not Found 
[user@localhost ~]$ curl -O https://github.com/neo4j-contrib/neo4j-helm/blob/master/index.yaml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current 
                                 Dload  Upload   Total   Spent    Left  Speed 
100  107k    0  107k    0     0   206k      0 --:--:-- --:--:-- --:--:--  206k 
[user@localhost ~]$ helm repo add stable https://github.com/neo4j-contrib/blob/master/neo4j-helm
Error: looks like "https://github.com/neo4j-contrib/blob/master/neo4j-helm" is not a valid chart repository or cannot be reached: failed to fetch https://github.com/neo4j-contrib/blob/master/neo4j-helm/index.yaml: 404 Not Found 
moxious commented 4 years ago

Current status here is I have an index.yaml file to act as a repo location, but chart-releaser is really not cooperating and I think suffering from some docs unclarities that make it hard to follow. Namely it seems to be expecting that my tag structure and the name of the releases always match, and they don't - and also that the tgz files are hosted in the repo themselves. Additionally, I'd like this repo to be self-hosted, and not have the "split" that chart releaser is assuming, where there's a "repository github repo" and a "chart repo".

So I'm looking into this to try to resolve it, but really struggling with silly bits of helm & cr to make this work. Help solicited.

jennyowen commented 4 years ago

@moxious It's interesting to see how aws does this. For example, https://github.com/aws/eks-charts releases everything in a big flat file structure on the gh-pages branch, so that the github.io page serves it in a way that helm repositories expect : https://github.com/aws/eks-charts/tree/gh-pages It's quite a neat solution!

I'm not familiar with the cr tool, but would releasing like that mean we don't need it? I'll try and prototype something.

moxious commented 4 years ago

@jennyowen I think in the end they're equivalent solutions really. The cr tool in the end is just trying to help automate what is the same thing: you place certain yaml files in certain places, make them web accessible, and then poof, you're a helm repo. That's basically it. I just burned a fair bit of time failing to figure out the cr tool. Any reasonably automatable solution which makes helm happy, and which can be maintained over time is ultimately fine.

lukaszo commented 3 years ago

@moxious this command worked just fine:

helm repo add neo4j-helm https://neo4j-contrib.github.io/neo4j-helm/

Then I was able to install neo4j using helm install my-neo4j neo4j-helm/neo4j --version 4.2.0-1

I've found the correct command here: https://artifacthub.io/packages/helm/neo4j-helm/neo4j?modal=install