harbor/docs/1.10/administration/configuring-replication/create-replication-endpoints.md

56 lines
2.4 KiB
Markdown
Raw Normal View History

---
title: Creating Replication Endpoints
2020-02-11 16:24:43 +01:00
weight: 20
---
2019-10-17 17:40:06 +02:00
To replicate image repositories from one instance of Harbor to another Harbor or non-Harbor registry, you first create replication endpoints.
1. Go to **Registries** and click the **+ New Endpoint** button.
![New replication endpoint](../../../img/replication-endpoint1.png)
2019-10-17 17:40:06 +02:00
1. For **Provider**, use the drop-down menu to select the type of registry to set up as a replication endpoint.
The endpoint can be another Harbor instance, or a non-Harbor registry. Currently, the following non-Harbor registries are supported:
- Docker Hub
- Docker registry
- AWS Elastic Container Registry
- Azure Container Registry
- Ali Cloud Container Registry
- Google Container Registry
- Huawei SWR
- Helm Hub
2019-12-13 16:57:46 +01:00
- Gitlab
- Quay.io
- Jfrog Artifactory
2019-10-17 17:40:06 +02:00
![Replication providers](../../../img/replication-endpoint2.png)
2019-10-17 17:40:06 +02:00
1. Enter a suitable name and description for the new replication endpoint.
1. Enter the full URL of the registry to set up as a replication endpoint.
For example, to replicate to another Harbor instance, enter https://harbor_instance_address:443. The registry must exist and be running before you create the endpoint.
1. Enter the Access ID and Access Secret for the endpoint registry instance.
Use an account that has the appropriate privileges on that registry, or an account that has write permission on the corresponding project in a Harbor registry.
{{< note >}}
2019-10-17 17:40:06 +02:00
- AWS ECR adapters should use access keys, not a username and password. The access key should have sufficient permissions, such as storage permission.
- Google GCR adapters should use the entire JSON key generated in the service account. The namespace should start with the project ID.
{{< /note >}}
2019-10-17 17:40:06 +02:00
1. Optionally, select the **Verify Remote Cert** check box.
Deselect the check box if the remote registry uses a self-signed or untrusted certificate.
1. Click **Test Connection**.
2019-10-17 19:00:00 +02:00
1. When you have successfully tested the connection, click **OK**.
## Managing Registries
You can list, add, edit and delete registries under **Administration** -> **Registries**. Only registries which are not referenced by any rules can be deleted.
2020-01-13 14:25:02 +01:00
![browse project](../../../img/manage-registry.png)
2020-02-20 13:02:41 +01:00
## What to Do Next
After you configure replication endpoints, see [Creating a Replication Rule](create-replication-rules.md).