goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.22k stars 4.77k forks source link

Export / Migration #21190

Open MarkLFT opened 1 week ago

MarkLFT commented 1 week ago

Is there a way to export all the configuration from one instance of Harbor to another? I install edge kubernetes clusters onto proxmox servers; we install Harbor to cache several repositories, but it is a PITA to set the mup from fresh every time. It would be good if I could just export the configuration from one to install in another location, as the only thing that is different is the IP address.

I tried to copy the VM from one installation to another and simply change the IP address, but for some reason the Talos cluster cannot pull images from Harbor, If I change the IP address, I always get a 401 error.

reasonerjt commented 4 days ago

What configurations are interesting to you? How do you setup authentication?

Generally, you'll have to use external tools or write some automation script to manage multiple Harbor instance. There's no out-of-box solution for that.

MarkLFT commented 4 days ago

Wasn't looking for something to manage multiple instances per say. Once installed, their is no connection between the instances. It is more a case of having a template instance in my office that I could duplicate the configuration to install into new instances. Saving a lot of time re-entering all the settings, i.e. repositories, projects, sync jobs, etc.

Something like exporting to a json file, which can be used to import into a new installation.