VMware Tanzu Kubernetes Grid 2.x
Package deployed Harbor
Please engage Broadcom support if assistance is required. The steps in the KB might lead to data loss if not performed correctly:
kubectl -n tanzu-system-registry edit extension harbor
# kubectl -n tanzu-system-registry get pvc --selector=component=registry --show-labels
kubectl -n tanzu-system-registry create -f harbor-registry-pvc.yaml
kubectl -n tanzu-system-registry scale deployment harbor-registry --replicas=0
ubectl -n tanzu-system-registry edit deployment harbor-registry
kubectl -n tanzu-system-registry scale deployments.apps harbor-registry --replicas=1
kubectl -n tanzu-system-registry get po --selector=component=registry
# kubectl -n tanzu-system-registry exec -ti harbor-registry-86d87c9c66-qgz89 -- /bin/bash
# cp -rfp /storage/* /storage2/
kubectl -n tanzu-system-registry scale deployment harbor-registry --replicas=0
kubectl patch pv pvc-0622e5ac-46c1-4a16-b908-b9b7445b4298 -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
kubectl -n tanzu-system-registry delete pvc --selector=component=registry
kubectl edit pvc-0622e5ac-46c1-4a16-b908-b9b7445b4298
kubectl apply -f harbor-registry-100gb.yaml
kubectl -n tanzu-system-registry scale deployment harbor-registry --replicas=1
kubectl patch pv pvc-0622e5ac-46c1-4a16-b908-b9b7445b4298 -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'
kubectl -n tanzu-system-registry edit extension harbor
kubectl -n tanzu-system-registry get po --selector=component=registry
# kubectl -n tanzu-system-registry exec -ti harbor-registry-64ddb7b98c-4dhl9 -- /bin/bash
# df -h /storage