Expansion for registry PV for Harbor as as supervisor service.
search cancel

Expansion for registry PV for Harbor as as supervisor service.

book

Article ID: 403762

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

Steps to increase the persistent volumes when using Harbor as a Supervisor. 

 

Environment

vSphere 8.X

 

Resolution

Steps below are for registry PV, can also be applied to job service. 

1. Checking the pv size before expanded

kubectl  get pv | grep registry

2. Edit the registry pv size on values.yaml file directly and update the package

registry:
  accessMode: ReadWriteOnce
  existingClaim: ""
  size: 11Gi
  storageClass: wcpglobal-storage-profile
  subPath: ""

3. Check recent task from the Harbor supervisor service UI

4. Double check on the supervisor cluster , the pv expanded successfully.

kubectl  get pv | grep registry

5. Check the values.yaml used for reconcile be synced 

kubectl get secret harbor.tanzu.vmware.com-<package version>-config-secret-37f -n vmware-system-supervisor-services -o json | jq -r '."data"."values.yaml"' | base64 -d | grep -A5 registry:

registry:
    path: /metrics
    port: 8001
namespace: svc-harbor-domain-<domain>
network:
  ipFamilies: []
--
    registry:
      accessMode: ReadWriteOnce
      existingClaim: ""
      size: 11Gi
      storageClass: <storage class name>
      subPath: ""