Expanding the CNF Harbor Registry Persistent Volume Claim (PVC)
search cancel

Expanding the CNF Harbor Registry Persistent Volume Claim (PVC)

book

Article ID: 447850

calendar_today

Updated On:

Products

VMware Telco Cloud Automation VMware Telco Cloud Platform

Issue/Introduction

Expanding the CNF Harbor Registry Persistent Volume Claim (PVC) to a target size (e.g., 2TB) 

Environment

  • TCA: 3.x
  • TCP: 5.x

Resolution

Step 1: 

1. Access Harbor CNF:

Navigate to the Harbor CNF in your TCA portal.

2. Download Values File:

Download the active Helm values file for the Harbor deployment.

3. Edit Storage Parameter:

Open the values file in a local text editor, locate the registry size configuration, and change the value to 2Ti.

4. Reconfigure CNF:

Reconfigure the Harbor CNF by uploading the modified values file. Apply this update strictly for the Harbor Helm Chart to trigger the expansion.

Step 2: 

1. Connect to Terminal:

Open the terminal or SSH session for the workload cluster.

2. Verify Current PVCs:

Run the following command to list all PVCs and verify the current state:

kubectl get pvc -A

3. Edit the Harbor Registry PVC:

Execute the edit command for the specific Harbor namespace and PVC:

kubectl edit pvc harbor-registry -n harbor-system

4. Update Storage Specification:

In the text editor that opens, locate the spec section and modify the storage parameter to 2Ti. Save and exit the editor to apply the changes.

Additional Information

Increasing Persistent Volume Size Managed by Deployment