VMware Cloud Community
fduranti
Hot Shot
Hot Shot

Configuring Harbor as a Docker Registry on vRA8 Code Stream

I'm trying to configure harbor as a docker registry as a vra 8 Code Stream endpoint but it seems that I'm not putting the correct url or it's not supported.

I was able to configure the public Docker Hub in vRA Code Stream.

I'm now trying to configure the harbor registry. I'm trying with the url for my test project repositories but I'm getting this error:

Malformed Repo URL: Please follow the suggested pattern

I'm using the url from the harbor registry repository that is something like this:

https://harborfqdn/harbor/projects/35/repositories/testpks%2Fhello

I tried to remove the %2Fhello or to put ":hello" but I get the same error:

If i put the url in a format that vra8 seems to accept like https://harborfqdn/repositories/testpks/hello

I get an error as that page return a 404:

Validation Failed as user details or Repo Url is incorrect

Anyone was able to use Harbor Registry with VRA 8 Code Stream?

Tags (3)
7 Replies
cmbwml1
Enthusiast
Enthusiast

I'm having problems registering Harbor Registry and vSphere 7 integrated kubernetes cluster as endpoints in vRA cloud assembly and/or code stream.  I'm wondering if vRA 8.1 does not yet support those endpoints.  I can't find any examples of harbor endpoint url format for endpoint registration and keep getting malformed URL error regardless of what I try.
Reply
0 Kudos
sghose0007
Enthusiast
Enthusiast

Hi All,

Same problem, trying to add the Embedded VRO instance and validate get this

Unable to connect to vco server Request failed with status: 401

Try to add docker instance

Malformed Repo URL: Please follow the suggested pattern

Trying to add kubernetes endpoint in VRA 8 codestream getting this error -

extension (5) should not be presented in certificate_request

Reply
0 Kudos
sghose0007
Enthusiast
Enthusiast

Update VRA 8.1 to Patch 2 and VRLCM to PATCH and the kubernetes issue is fixed

Reply
0 Kudos
sghose0007
Enthusiast
Enthusiast

Issue Fixed

I added the EndPoint as DockerHub

Repo URL for the DockerHub must be in proper format - https://hub.docker.com/repository/docker/{userid}/{repository}  If its not error while validating - Malformed Repo URL: Please follow the  suggested pattern

Change only the userid and repository as per your docker information

For Example - https://hub.docker.com/repository/docker/ghoses/codestream-ci-tkg/

It worked

Reply
0 Kudos
dimatha
Contributor
Contributor

I believe the question was about Harbor ? 

Did anyone manage to create/use Harbor as docker registry  ?

Reply
0 Kudos
SaravananS1
Contributor
Contributor

I am facing this problem right now. Did you manage to fix this? I tried using the URL is multiple formats. Nothing has worked for me so far. 

Tags (1)
Reply
0 Kudos
j-y-m
Contributor
Contributor

It looks like this isn't possible in the current iteration of Code Stream (as of version vRA 8.11.1).  Here's why:

As per Harbor's documentation:

Harbor only supports the (Docker) Registry V2 API.

Code Stream, on the other hand, only supports either the DockerHub API or the Docker Enterprise/Mirantis Kubernetes Engine API as endpoints to look for container images.  Docker Registry V2 API isn't compatible with either of these.

Feel free to provide feedback on this to your respective VMware Account Manager so that either:

  • Code Stream adopts support the Docker Registry V2 API

or

  • Harbor adopts support of either the DockerHub API or Docker Enterprise/Mirantis Kubernetes Engine API
Reply
0 Kudos