Configure registry authentication for builder service images
Mount an auth.json file into the flightctl-imagebuilder-worker pod when you mirror builder service images (podman, bootc-image-builder, and syft) to a private registry that requires authentication. This allows inner Podman commands to pull those images.
Before you begin
- You configured
serviceImagesin Configuring the image builder worker in disconnected environments to reference your mirrored registry. - Credentials for
<local-registry>. - Cluster administrator access and the OpenShift CLI (
oc) configured for the release namespace.
global.imagePullSecretName and the worker pod imagePullSecrets authenticate pulls of the flightctl-imagebuilder-worker pod image only. They do not apply to the inner podman run commands that pull builder service images during an image build.
Registry authentication for source and destination images during a build is configured separately on Repository resources. This procedure covers authentication for the builder service images themselves.
Procedure
Results
- Worker logs do not report
unauthorizedorauthentication requirederrors when pulling from<local-registry>. - A test image build in the Red Hat Edge Manager web console completes without errors pulling
podman,bootc-image-builder, orsyftfrom the authenticated mirror.
For image builder workers on standalone Red Hat Enterprise Linux with Podman Quadlets, see Configuring registry authentication for builder service images in Installing Red Hat Edge Manager on Red Hat Enterprise Linux.