Use the Google Distributed Cloud (GDC) air-gapped Harbor-as-a-Service (HaaS) to create a Harbor registry instance in each project. A Harbor registry instance serves as a central repository for storing and managing container images in a cloud-native environment. It extends the capabilities of the open-source Docker distribution. The following restrictions apply:
- You can only create up to one instance in each project.
- Instances are isolated and don't share any data or compute resources.
Before you begin
To create Harbor registry instances, you must have the necessary identity and access roles:
- Harbor Instance Admin: grants read and write access to all Harbor resources.
Ask your Organization IAM Admin to grant you the Harbor Instance Admin
(
harbor-instance-admin
) role.
Create a Harbor registry instance
Follow these steps to create a Harbor registry instance in your project.
Console
In the GDC console, follow these steps:
- Click the Harbor Container Registry link in the section CI/CD in the navigation menu.
- Click Create Instance.
- The Status must show In progress, and the Name must show an external link containing the name of your newly created Harbor instance.
- After the instance is created and the Status shows Ready, click the external link on the page to visit the web UI of the Harbor instance.
CLI
Create the Harbor registry instance:
gdcloud harbor instances create INSTANCE \
--project=PROJECT
Replace the following:
INSTANCE
: the name of the instance.PROJECT
: the name of the GDC project in which to create the instance.