As a vSphere administrator, you can enable a private image registry on the Supervisor Cluster through the Registry Service. DevOps engineers can push and pull images from the registry as well as deploy vSphere Pods by using these images.

Prerequisites

  • Create a storage policy for placement of container images.

Procedure

  1. In the vSphere Client, browse to the cluster where you want to enable the image registry.
  2. Select Configure.
  3. Under Namespaces, select Image Registry.
  4. Click Enable Harbor.
  5. Select the storage policy for placement of container images.

Results

A private image registry becomes enabled after a few minutes. A special namespace is created for that instance of the private image registry. You cannot perform any operations on that namespace, it is read only for vSphere users.

Every namespace on the Supervisor Cluster has a matching project with the same name as the private image registry. Every user or group that has edit or view permission to a namespace becomes a corresponding role member on the matching project with the same name in the private image registry. The lifecycle of projects and members of the private image registry is automatically managed and is linked to the lifecycle of namespaces and user or group permissions in namespaces.

What to do next

Provide the URL of the private image registry instance to the DevOps engineers.