harbor multi site


Ignazio Cassano
 

Hello Everyone,
I would like to install 3 harbor each one on a different site: harbor 1 on Site A, harbor 2 on Site B and harbor 3 on Site C.
To keep them aligned I would like to use harbor replication but only one can push.
I wonder if an haproxy load balancer can check which harbor installation is  pushing (so which is the master). This because the master could fail and I could switch one of the 2 remained in pushing mode.
Thanks
Ignazio


Vadim Bauer
 

It's possible to use replication as a way to back up images, but in practice it is not usable.

The main reason is that when you switch sites, you would need to rotate all pull secrets for every consumer of your registry.

A usable fallback scenario is a bit more complicated than that and depends on the given infrastructure. 


Ignazio Cassano
 

Thanks for your answer.
Please, could you explain a fallback scenario ?
Ignazio

Il giorno mar 20 set 2022 alle ore 10:39 Vadim Bauer via lists.cncf.io <vb=container-registry.com@...> ha scritto:

It's possible to use replication as a way to back up images, but in practice it is not usable.

The main reason is that when you switch sites, you would need to rotate all pull secrets for every consumer of your registry.

A usable fallback scenario is a bit more complicated than that and depends on the given infrastructure.