Skip to main content
Version: Release Next

Configuring Digital.ai Release Runner Registry Settings

Overview​

When deploying Digital.ai Release in enterprise environments, you may need to configure custom registry settings for your Release runner to handle container images effectively. This guide walks you through the process of configuring registry settings for air-gapped networks and private registries.

important

These registry settings only apply to plugin execution pods created by the Release Runner. The Runner installation itself, including its container images, is handled during the installation process using the xl kube install command.

Understanding the Need for Custom Registry Settings​

There are several key scenarios where custom registry settings become essential for your Digital.ai Release deployment, and understanding these scenarios will help you implement the right configuration for your environment.

Common Scenarios​

  1. Air-gapped Networks: In environments without internet access, external registry URLs (like docker.io) are not accessible to fetch images for integration plugins.
  2. Private Registries: Organizations often maintain internal registries that require proper authentication and routing configurations.
  3. Security Requirements: Companies may need to ensure all container images come from approved, internal sources.

How Registry Settings Help​

The Digital.ai Release runner registry settings provide solutions by:

  • Redirecting container image requests from public repositories to your internal registry
  • Configuring authentication for private registries using Kubernetes secrets or Docker registry credentials
  • Setting up image mappings to maintain consistency across your deployment
  • Ensuring seamless operation of integration plugins in restricted network environments

Setting Up Custom Registry Settings​

Follow these steps to configure your registry settings, starting with creating a connection and then configuring the necessary mappings and authentication.

Creating a Registry Settings Connection​

  1. Click Connections from the sidebar.
    note

    Digital.ai Release runner registry settings connection is only available at global level.

  2. Click New Connection and select Digital.ai Release runner registry settings. New Digital.ai Release runner registry settings connection form
  3. Provide a Title for the configuration.
  4. Define Image mappings and Registry pull secrets (detailed in sections below).
  5. Specify Registry base URLs (Optional) to correctly resolve registries with subpaths.
  6. Add Docker Registry Credentials (Optional) for runners that use the Docker profile and pull images from a registry that requires a username and password.
  7. Click Save.

Configuring Image Mappings​

Image mappings redirect Docker image requests to your internal registry locations.

Steps to Add Image Mappings:

  1. In the Image mappings table, click the + button.

  2. Configure the mapping:

    • Key: Original image URL/pattern (for example, docker.io/digitalai)
    • Value: Internal image URL (for example, internal-registry.local/digitalai)
  3. Click Save.

Setting Up Registry Authentication​

If your internal registry requires authentication, you'll need to configure registry pull secrets. Registry pull secrets apply to runners that use the Kubernetes profile. For runners that use the Docker profile, see Docker Registry Credentials.

Steps to Configure Authentication:

  1. Create a Kubernetes Secret:

    kubectl create secret docker-registry my-registry-secret \
    --docker-server=internal-registry.local \
    --docker-username=<username> \
    --docker-password=<password> \
    --docker-email=<email>
  2. Add a registry pull secret mapping:

    • In the Registry pull secrets table, click +
    • Key: Image URL requiring authentication
    • Value: SecretRef name (for example, my-registry-secret)
caution

Create the Kubernetes secret in the same namespace as your Digital.ai Release runner to ensure proper access to credentials.

Registry Base URLs​

The Registry base URLs field (optional) allows you to specify a list of base URLs that help resolve container registries correctly, especially when the registry includes subpaths in its URL. Without proper configuration, the Release runner may incorrectly parse these URLs, treating the sub-path as part of the organization name rather than the registry URL, which can cause image pull failures.

For example, if your registry is hosted at artifactory.aws.net/docker-old-hub, you can add it to this list to ensure images are pulled and resolved without errors.

Registry Base URLs

Registry Base URL Field

Use the Registry base URLs field when your registry has sub-paths that could be incorrectly parsed as organization names. This ensures the Release runner correctly identifies:

  • Registry: The base URL portion (for example, registry.company.com/subfolder)
  • Organization: The organization name (for example, myorg)
  • Image: The image name and tag (for example, myapp:latest)

Docker Registry Credentials​

Docker registry credentials let a runner sign in to a registry with a username and password when it pulls images. These credentials apply only to runners that use the Docker profile. Runners that use the Kubernetes profile authenticate through registry pull secrets instead.

Steps to Add Docker Registry Credentials:

  1. In the Docker registry credentials section, click the + icon. The Create Docker registry dialog opens.
  2. Complete all three fields:
    • Registry URL: The registry to sign in to, such as internal-registry.local
    • Username: The username for the registry
    • Password: The password for the registry
  3. Click Create.

Create Docker registry dialog with the Registry URL, Username, and Password fields

Example Configurations​

Let's look at some practical examples of how to configure both image mappings and registry authentication for common scenarios.

Image Mapping Example​

KeyValue
docker.io/digitalaiinternal-registry.local/digitalai

Registry Pull Secret Mapping Example​

KeyValue
internal-registry.local/digitalaimy-registry-secret

Here's how the complete configuration looks:

Registry Settings Example

Applying Settings to Your Runner​

  1. Select Settings ( Settings Icon ) > Runners from the top navigation bar.

  2. Click the Actions ellipsis icon for the runner and select Edit.

    Edit Runner

  3. Choose your registry setting from the Registry Settings drop-down list.

    Select Registry Setting

  4. Click Save.

note

Saving the registry setting applies it to the runner immediately. As a safeguard, the runner also retrieves all of its settings from Release every 10 minutes, so a change that does not reach the runner is applied at the next synchronization. To change the interval, set the release.runner.control-channel.settings-sync-interval property on the runner. For more information, see Configuration Parameters for Release Runners.

Troubleshooting Common Issues​

If you encounter issues while configuring or using your registry settings, here are some common problems and their solutions organized by category.

Image Pull Failures​

  • Verify image mapping syntax is correct
  • Ensure internal registry is accessible
  • Check if authentication secrets are properly configured
  • For sub-path registries: Verify the Registry base URLs field is correctly configured

Registry URL Parsing Issues​

  • Symptom: Container tasks fail with "image not found" or "organization not found" errors
  • Cause: Registry URLs with sub-paths are incorrectly parsed
  • Solution: Configure the Registry base URLs field in your image mapping to specify the correct registry portion. See Registry Base URLs.
  • Example: For registry.company.com/subfolder/myorg/app:tag, set Registry base URLs to registry.company.com/subfolder

Authentication Issues​

  • Confirm Kubernetes secret exists in correct namespace
  • Verify registry credentials are valid
  • Check registry pull secret mapping configuration

Connection Problems​

  • Validate internal registry connectivity
  • Ensure proper network access between runner and registry
  • Verify DNS resolution for registry URLs