The Artifact Registry API uses Kubernetes custom resources and relies on the Kubernetes Resource Model (KRM). This API is used to view and manage Harbor container registry instances.
Service endpoint and discovery document
The API endpoint for the Artifact Registry API is:
https://GDC_API_SERVER_ENDPOINT/apis/artifactregistry.gdc.goog/v1
where GDC_API_SERVER_ENDPOINT
is the endpoint of the
GDC API server.
Using the kubectl proxy
command, you can access that URL in your browser or
with a tool such as curl
to get the discovery document for the Artifact Registry API.
The kubectl proxy
command opens up a proxy to the Kubernetes API server on
your local machine. Once that command is running, you can access the document at
the following URL: http://127.0.0.1:8001/apis/artifactregistry.gdc.goog/v1
.
Example Harbor container registry instance
The following is an example of a Harbor container registry instance:
apiVersion: artifactregistry.gdc.goog/v1
kind: HarborInstance
metadata:
name: myinstance
namespace: tenant-project-namespace