Updating Harbor Tile Container Registry Storage NFS location
search cancel

Updating Harbor Tile Container Registry Storage NFS location

book

Article ID: 420481

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

When installing Harbor for use with TKGI, the selection made for Container Registry Storage cannot be changed after install.

Choose one of the following as your desired storage for container images. (This selection cannot be changed after deployment of Harbor.)

https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/harbor-registry/services/harbor/installing.html#nfs

Once installed, the section of the configuration is greyed out, meaning you cannot select another storage option. However, it is possible to update the NFS mount location. This article will describe the steps for doing so.

Environment

TKGI and Harbor

Resolution

Updating the NFS location can be done with the following:

  1. Created your new NFS mount point. For example: /var/test/nfs/
  2. Move the existing data from the original mount point to the new one. An example of doing this with rsync is: sudo rsync -av /var/nfs/test_share/ /var/test/nfs
  3. Using the BOSH CLI, disable the resurrector and delete the harbor VM.
    1. bosh -d <harbor-deployment> update-resurrection off
    2. bosh -d <harbor-deployment> delete-vm <vm-cid>
  4. Update the Harbor tile -> Container Registry storage configuration -> NFS Server address with the new mount point.
  5. Run Apply Changes against the Harbor tile.
  6. Once completed, test by pushing/pulling new images to harbor. This should be reflected in the new mount point /var/test/nfs.