TKGi Harbor web UI login failed with "Core service is not available" error.
Tanzu Kubernetes Grid Integrated Edition
There could be numerous reasons for the harbor core service to be down. One possibility is that the disk full of Persistent Disk.
# Check disk usage --> Found disk full
DEPLOYMENT=$(bosh ds --column=Name | grep harbor-container-registry)
bosh -d ${DEPLOYMENT} ssh harbor-app/0 "df -h"
#> Filesystem Size Used Avail Use% Mounted on
#> ...
#> /dev/sdc1 2.0T 1.9T 0 100% /var/vcap/store
Expand the Persistent Disk size via Ops Manager (Check actual behavior in "Additional Information" section).
1. Check the free space of the datastore
If the current persistent disk size is 2TB, an additional 2TB free space is required in the same datastore.
If there isn’t enough free space in the datastore, please expand the datastore size in advance.
2. Expand the Persistent Disk
3. (optional) Make disk space
After logging in to the harbor web UI, kick the "Garbage Collection" to make disk space.
Administration --> Clean Up --> "GC NOW"
# Study: What happens after kicking to expand the Persistent Disk?
# Best Practice