docker-registry-proxy icon indicating copy to clipboard operation
docker-registry-proxy copied to clipboard

Harbor support

Open roldancer opened this issue 4 years ago • 4 comments

Hi, First of all ... excellent project !!!!

I would like to know if there is any experience using this projects as a docker proxy for Harbor 2.X ? can anyone provide me any kind of experience , best practices etc.

Many thanks.

roldancer avatar Mar 02 '21 20:03 roldancer

have the same question. how to auth proxy to harbor

brizjin avatar Jul 14 '21 18:07 brizjin

Hi there, is this harbor cloud or on prem?

With our on prem setup we just create read only robot account which we then configure using the REGISTRIES and AUTH_REGISTRIES vars, i suspect cloud should be similar but I cannot confirm.

The only tweak we required was to add http2 support, which is covered in https://github.com/rpardini/docker-registry-proxy/pull/102

hishamanver avatar Aug 03 '21 15:08 hishamanver

I'm very interested why one would want to run this in front of Harbor...

rpardini avatar Aug 04 '21 12:08 rpardini

To give inside as to why this could be wanted: For us we want to ease the traffic to the registry/harbor by having in kubernetes a per node proxy with caching enabled and having the service set to local traffic to prevent request from unnecessarily going to other nodes.

This Cluster is used for running gitlab pipeline jobs. Those jobs cause daily 2 TB of traffic, which is too much for gitlab ce or minio and probably harbor.

The described setup works as intended, for our docker registry mirror, only harbor auth is not so happy with the proxy.

flippy1345 avatar Nov 24 '22 20:11 flippy1345