Relocate Supervisor Services to a private container registry.
Prerequisites
- Verify that you have upgraded vCenter Server to version vSphere 8.0 Update 3.
- Verify that you have upgraded Supervisor to version 1.28.
- Verify that you have a private container image registry.
Procedure
- Install the Carvel
imgpkg
utility.
- Install
imgpkg
wget -O- https://carvel.dev/install.sh > install.sh
sudo bash install.sh
- Verify installation.
- Get the YAML manifest for your service.
Locate the imgpkg
bundle:
The following is a Contour example:
template:
spec:
fetch:
- imgpkgBundle:
image: projects.registry.vmware.com/tkg/packages/standard/contour:v1.24.4_vmware.1-tkg.1
- Download a tar of that
imgpkg
bundle.
imgpkg copy -b projects.registry.vmware.com/tkg/packages/standard/contour:v1.24.4_vmware.1-tkg.1 --to-tar contour-v1.24.4.tar --cosign-signatures
Important: You must use the
copycommand and not the
push and
pull commands to relocate the images as they do not pull down all referenced images.
- Upload the
imgpkg
bundle to your private container image registry.
imgpkg copy --tar contour-v1.24.4.tar --to-repo ${registry_url}/contour --cosign-signatures
Note:
imgpkg
honors the system's trust settings and Docker's configuration for authentication. If your registry requires authentication, first log in with the Docker CLI command
docker login ${registry_url}
- Update the Supervisor Service YAML with the new URL for the
imgpkg
bundle.
For example:
template:
spec:
fetch:
- imgpkgBundle:
image: n.n.n.n/contour:v1.24.4_vmware.1-tkg.1