Using Your Own Registry

By default, manifest-installer downloads the release packages from Manifest's registry (Amazon ECR), and the cluster pulls every container image from an in-cluster registry that deploy fills from those packages. Either can use an OCI registry your organization runs, such as Harbor, instead:

The two are independent: you can use either one, or both. To fill your registry with a release, see Mirroring Images.


Download the release from your registry

If your organization copies the Manifest release packages into its own registry, point download at that registry with --registry:

docker login registry.example.com
manifest-installer download --registry registry.example.com/manifest --version <x.x.x>

To use the registry for every command on the host without passing the flag, store it in the installer settings with manifest-installer config set registry registry.example.com/manifest, or set MANIFEST_INSTALLER_REGISTRY.

The registry must hold each package under the same repository and tag Manifest publishes: <registry>/manifest-init:<x.x.x>, and likewise manifest-platform, manifest-observability and manifest-app, with -fips after the version for the FIPS package set. images mirror --packages copies a downloaded release there; see Copy a release into your registry.

The registry must serve TLS with a certificate the host trusts. When a private CA issued it, pass that CA's certificate file with --registry-ca instead of adding it to the host trust store. That applies on Linux; on macOS and Windows, the installer verifies TLS against the OS trust store only, so add the CA there.

Registry credentials

AWS credentials are not needed for a registry other than ECR. The installer uses the credentials stored for the registry host:

  1. In ~/.docker/config.json, or from the credential helper it names, as docker login writes them. An identity token returned by a credential helper is used too. A credential helper that fails stops the command rather than falling back.
  2. When those hold nothing for the host, what podman login stored in Podman's auth file: $REGISTRY_AUTH_FILE, otherwise $XDG_RUNTIME_DIR/containers/auth.json.

download also fetches the matching manifest-installer binary from the public GitHub release, which only export-bundle uses. On a host without access to GitHub, pass --skip-installer-binary and download makes no GitHub request.

Where the packages come from does not change where the cluster pulls container images from. That is set separately, below.


Pull images from your registry

By default every install runs an in-cluster registry. To have every pod pull from a registry you run, give setup its address and an account on the Image registry page. Your answers are stored under setup.registry in config.yaml, with the password encrypted like the other secrets:

setup:
  registry:
    address: harbor.example.com/manifest   # host, optional port and path; no https://
    username: robot$manifest
    password: <token>
    ca: |                                  # only when a private CA issued the registry's certificate
      -----BEGIN CERTIFICATE-----
      ...

During deploy, the installer pushes every container image the release needs into that registry under the given path, and no in-cluster registry, injector, or NodePort 31999 is deployed. The cluster's Zarf admission controller rewrites each pod to pull from your registry, so an admission policy that allows only your registry admits Manifest's pods. Each image is pushed twice: under its original path and tag, and under the tag the admission controller requests, which appends -zarf-<checksum> (for example harbor.example.com/manifest/library/postgres:17.5-zarf-1234567890).

🚧

Choose the registry before the first deploy

The cluster keeps the registry it was first deployed with. deploy refuses to run when setup.registry names a different one, and that includes adding a registry to, or removing it from, an install that already ran deploy.

Account permissions

The account needs:

  • Push access to the path, and permission to create repositories under it (in Harbor, a project and a robot account with push and pull on it). deploy pushes with it. Not needed when the registry is preloaded.
  • Pull access, used by every node. The installer writes the same account into an image pull secret in each namespace Manifest deploys to, and the admission controller attaches that secret to every pod. Use a credential that does not expire, such as a Harbor robot account without an expiry; a short-lived token stops pods from pulling once it expires.

Registries with a private CA

The registry must serve TLS with a certificate that both the installer host and the nodes trust. When a private CA issued it, give setup the CA's certificate file (PEM, DER, or PKCS#7) on the same page, under Registry CA certificate file. It is stored as PEM under setup.registry.ca. Leave it empty for a publicly trusted certificate.

  • On a cluster the installer builds, deploy adds the CA to the host trust store (/etc/pki/ca-trust/source/anchors/ on RHEL, /usr/local/share/ca-certificates/ on Debian and Ubuntu) before it starts RKE2 (or k3s, on a host that already runs it), so the node pulls through it. Give each agent node the same CA file with join --registry-ca.
  • On an existing cluster, the installer changes nothing on the nodes: their container runtime must already trust the CA.

Either way, deploy trusts the CA for its own pushes without relying on the trust store of the host it runs on. deploy-data pushes the vulnerability-data loader's image too, but reads the CA only when it loads FOCI data, so on an existing cluster add the CA to the trust store of the host that runs deploy-data. On a cluster the installer builds, deploy has already put it there.

Preload the images yourself

To copy the images into your registry yourself first, for example so your scanner can approve them, mirror them with images mirror --zarf-tags (see Run the copies you mirrored) and answer yes to Images are already in the registry in setup (setup.registry.preloaded: "true").

deploy then pushes nothing, so the cluster runs exactly the copies your registry holds, and the account needs pull access only. Before deploying anything, deploy looks up every image of every package it is about to deploy, under the name the cluster will request and with the account in setup.registry, and refuses to run if any is missing, listing each one. Mirror each new version with --zarf-tags before you upgrade to it.

Rotate the registry credential

To change the account or its password, for example to a renewed Harbor robot secret, update setup.registry with manifest-installer setup or manifest-installer deploy-config edit, then run deploy:

manifest-installer deploy-config edit   # or: manifest-installer setup
manifest-installer deploy

Before deploying any package, deploy records the new account as the one the cluster pushes and pulls with, and rewrites the image pull secret in every namespace that has one. Pods already running keep their images; a pod that starts afterwards pulls with the new credential. Keep the old credential valid until that deploy has run, since until then every node pulls with it.


Related Documentation


Did this page help you?