Unable to change the repository to a private harbor when installing supervisor service, causing supervisor service installation failed.
search cancel

Unable to change the repository to a private harbor when installing supervisor service, causing supervisor service installation failed.

book

Article ID: 431039

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

- This is an air-gapped environment, and the customer needs to install the Supervisor Service from a private Harbor registry.

- Initially, uploading the Supervisor Service YAML file without modifying the image references to point to the private Harbor registry.

-  After realizing the mistake, re-uploading the YAML file with the correct image paths.

- However, the configuration task cannot complete. The error indicates that the system is still attempting to pull the image from projects.packages.broadcom.com instead of the private Harbor registry.

Environment

Supervisor Cluster 1.30

TKG Service 3.3.1

Cause

The image path in Package still points to the public repository, even after re-upload the correct yaml file

Resolution

- Check the current status of image

kubectl get pkgi -n <namespace> <pkgi_name>
kubectl get pkg -n <namespace> <pkg_name>

- Modify the image path 

kubectl edit pkg -n <namespace> <pkg_name>

- Restart the kapp pod. It may take up to 15 minutes to finish reconciling.

kubectl get pod -A |grep kapp
kubectl delete <kapp_pod>