twuni / docker-registry.helm

Helm chart for a Docker registry. Successor to stable/docker-registry chart.
Apache License 2.0
309 stars 146 forks source link

Beginner Configuration Help #96

Open CodeMan99 opened 1 year ago

CodeMan99 commented 1 year ago

👋 Hello,

I'm totally new to helm in general. Hopefully there is some documentation you can point me toward.

I'm trying to follow a linode guide to setup a docker registry. It mentions this as an alternative, but I'm not sure how to make it work.

The original example is a configuration with this command:

$ helm install docker-registry stable/docker-registry -f registry/docker-configs.yml
Error: INSTALLATION FAILED: repo stable not found

I am not sure how to correct the error. However, the article mentions helm repo add twuni https://helm.twun.io as an alternative. I'm not sure how to continue from here. I have attempted the following.

$ helm install docker-registry stable/docker-registry -f registry/docker-configs.yml
Error: INSTALLATION FAILED: repo stable not found

$ helm install twuni/docker-registry stable/docker-registry -f registry/docker-configs.yml
Error: INSTALLATION FAILED: repo stable not found

$ helm install twuni/docker-registry docker-registry -f registry/docker-configs.yml     
Error: INSTALLATION FAILED: non-absolute URLs should be in form of repo_name/path_to_chart, got: docker-registry

$ helm install twuni/docker-registry                                        
Error: INSTALLATION FAILED: must either provide a name or specify --generate-name

$ helm install twuni/docker-registry -f registry/docker-configs.yml 
Error: INSTALLATION FAILED: must either provide a name or specify --generate-name
CodeMan99 commented 1 year ago

A friend helped me enable the stable repository.

$ helm repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories
$ helm install docker-registry stable/docker-registry -f registry/docker-configs.yml 
WARNING: This chart is deprecated
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "docker-registry" namespace: "" from "": no matches for kind "Ingress" in version "extensions/v1beta1"
ensure CRDs are installed first

Now I have a nice deprecation warning (which the linode document mentioned) and wonderful error. I'm not sure what extensions/v1beta1 is.