Configure pull credentials using device or fleet configuration
You can configure container registry pull credentials for VM applications by declaring the credentials in a device or fleet specification. The Red Hat Edge Manager agent deploys the credentials file to each managed device automatically.
Before you begin
- The
flightctlCLI is installed and authenticated. - A Red Hat account with access to the Red Hat container catalog.
- A base64-encoded credentials file for
registry.redhat.io. - The
worker.vmRender.launcherImagevalue is configured on the Red Hat Edge Manager control plane. See Virt-launcher image configuration values for configuration details.
Procedure
Results
- Check the device status to confirm the configuration was applied:
$ flightctl get device edge-device-01 -o yamlThe output shows the applied configuration in the device status.
- SSH to the device and verify the credentials file exists. Reading
/root/requires elevated privileges, so usesudoeven if you are already logged in as a non-root user:sudo test -f /root/.config/containers/auth.json && echo "Credentials file exists"
Device-level specifications override fleet-level specifications. If a device has credentials configured directly, the fleet configuration does not apply to that device.