Setting up the OS package mirror

Provide the operating system packages that cluster nodes and hosts install at bootstrap by synchronizing, publishing, and verifying a package mirror.

In this procedure, you provide the operating system packages that cluster nodes and hosts install at bootstrap. If every package is already installed in the node image, you can skip the mirror, as Preparing OS images for cluster nodes explains.

  • You have a mirroring tool for your distribution and enough storage.
  • The mirror host presents a certificate from your private CA, or serves HTTP on a trusted network.
  1. Synchronize the repositories from the upstream source on a connected network.

    For Ubuntu, synchronize main and universe with the -updates or -security pockets for each release. For RHEL-compatible distributions, synchronize BaseOS, AppStream, and EPEL for the matching major version.

  2. Publish the repositories on the mirror host over HTTPS and note the URL as package-mirror.
  3. Export the GPG public key of the mirror.

    You add it to the node image.

  4. Keep the mirror current.

    On RHEL 10, keep the exact kernel-modules-extra build for every kernel that a node image uses.

  5. Verify the mirror from a test host that is configured for it.
    curl -I <package-mirror>/ubuntu/dists/resolute/InRelease
    sudo apt-get update

The metadata downloads without errors and apt-get update completes with no unreachable repositories.