Symptoms:
harbor-registry vSphere pod experiences a permanent loss of internal cluster connectivity.dial tcp: lookup harbor-redis on [CoreDNS-IP]:53: read udp [Pod-IP]:[Port]->[CoreDNS-IP]:53: i/o timeoutdial tcp [Redis-IP]:6379: context deadline exceededharbor-registry pod (such as getent hosts harbor-redis or nc -w 2 harbor-redis 6379) consistently time out.harbor-core) remain unaffected and continue to resolve internal DNS successfully.harbor-registry pod CPU utilization is pegged at or near 100%, even when the registry is completely idle.The network collapse is caused by severe CPU starvation. The default CPU and Memory resource limits configured within the Harbor Supervisor Service package are undersized.
To resolve this issue, you must manually update the Harbor Supervisor Service configuration to allocate appropriate resource limits and increase the Redis storage size.
Step 1: Prepare the Updated Configuration
Modify your Harbor Supervisor Service data values (YAML) to increase the CPU and Memory limits, as well as the Redis storage size. Apply the following recommended minimums:
resources:
containers: core: cpuRequest: 500m cpuLimit: 2000m memoryRequest: 512Mi memoryLimit: 4Gi database: cpuRequest: 1000m cpuLimit: 4000m memoryRequest: 1Gi memoryLimit: 4Gi redis: cpuRequest: 200m cpuLimit: 1000m memoryRequest: 256Mi memoryLimit: 2Gi registry: cpuRequest: 500m cpuLimit: 4000m memoryRequest: 512Mi memoryLimit: 6Gipersistence:
persistentVolumeClaim:
redis:
existingClaim: ""
storageClass: "insert-storage-class-name-here"
subPath: ""
accessMode: ReadWriteOnce
size: 5Gi
Step 2: Address the Redis StatefulSet Immutability Error
Because Kubernetes StatefulSet volume claim templates are immutable, applying the updated storage size (e.g., expanding from 1Gi or 2Gi to 5Gi) will result in a package install (pkgi) error stating the update is Forbidden.
To allow the volume expansion to proceed, you must safely delete the existing Redis StatefulSet.
kubectl.<harbor-namespace> with your actual namespace, e.g., svc-harbor-domain-c8): kubectl delete sts harbor-redis -n <harbor-namespace>Step 3: Validation
Once the pkgi has reconciled (could take up to 10 minutes) and pods have restarted and stabilized:
harbor-registry pod has dropped significantly (typically below 10%).