Harbor has the following three statefulset components:

  1. harbor-database

  2. harbor-redis

  3. harbor-trivy

Perform the following steps to increase the PVC size for harbor statefulsets.

Procedure

  1. Change harbor instance to read-only mode.

    Login as admin and navigate to Configuration > System Settings > Repository Read Only.

  2. Run TCA CNF K8s workflow Expand StatefulSet PV size by providing new PV size.
  3. Run mandatory TCA Harbor CNF reconfigure with values.yaml having new PV size. This is required to update values.yaml PV size consistent with current PV size.
  4. Login to k8s cluster and validate harbor PV size.
  5. Unset harbor instance to read-only mode and validate push or pull operations are working fine.