Harbor Supervisor Service Configuration Reverts with ReconcileFailed in VCF Automation
search cancel

Harbor Supervisor Service Configuration Reverts with ReconcileFailed in VCF Automation

book

Article ID: 461800

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

  • Administrators attempting to modify Harbor Supervisor Service data values, such as persistent volume capacity or hostname, directly in the vSphere Client or via kubectl observe that the changes automatically revert after a short period. Shortly after the configuration reverts, the Harbor application enters a ReconcileFailed state.
  • The following error message is observed in the vCenter UI, the App resource status, or the kapp-controller logs:Reason: ReconcileFailed. Message: kapp: Error: update persistentvolumeclaim/harbor-registry (v1) namespace: svc-harbor-[id]: Updating resource persistentvolumeclaim/harbor-registry (v1) namespace: svc-harbor-[id]: API server says: PersistentVolumeClaim "harbor-registry" is invalid: spec.resources.requests.storage: Forbidden: field can not be less than status.capacity (reason: Invalid).

Environment

  • VMware Cloud Foundation Automation (VCFA) 9.1

  • vCenter Server 9.1

  • vSphere Kubernetes Supervisor

  • Harbor Supervisor Service 2.14.2

Cause

When Harbor is deployed as a Supervisor Service via VMware Cloud Foundation Automation (VCFA), VCFA acts as the ultimate upstream source of truth for the deployment's configuration. Manual edits to the YAML data values in the vCenter Supervisor Services UI or PVC modifications directly in Kubernetes are detected as configuration drift by downstream controllers. VCFA subsequently overrides these manual changes with its own stored state to enforce compliance. Because the manual edit expanded the underlying Kubernetes PVC, the rollback attempts to re-apply the original, smaller storage capacity. The Kubernetes API natively rejects attempts to shrink a PVC, causing the kapp-controller to fail the reconciliation loop with the observed Forbidden error.

Resolution

To successfully apply configuration changes to the Harbor Supervisor Service without triggering a rollback or reconciliation failure, you must update the configuration at the top-level source of truth. Do not edit the configuration in the vSphere Client or via kubectl.

  1. Log in to the VMware Cloud Foundation Automation (VCFA) console.

  2. Navigate to the deployed Harbor Supervisor Service instance.

  3. Select the Edit action for the Harbor deployment.

  4. Update the required data values, such as the new hostname or the expanded storage capacity.

  5. Save and submit the changes.

Additional Information

Install Harbor as a Supervisor Service