Chapter 5. Deploying Red Hat Quay
Deploy the Red Hat Quay service on each node in your cluster by mounting the shared config.yaml bundle and starting the registry container.
For a basic setup, you can deploy on a single node. For high availability, deploy three or more nodes, for example quay01, quay02, and quay03.
The resulting Red Hat Quay service listens on port 8080 for HTTP and port 8443 for HTTPS. This differs from earlier releases, which listened on ports 80 and 443 respectively. This guide maps 8080 and 8443 to standard ports 80 and 443 on the host.
Procedure
-
On each Red Hat Quay node, confirm that
/mnt/quay/configcontainsconfig.yamland any required TLS certificate files from Configuring Red Hat Quay. Deploy Red Hat Quay on the node. After you authenticate to
registry.redhat.io(see Accessing Red Hat Quay), run the following command:NoteAdd
-e DEBUGLOG=trueto thepodman runcommand line for theQuaycontainer to enable debug-level logging. Add-e IGNORE_VALIDATION=trueto bypass validation during the startup process.# sudo podman run --restart=always -p 443:8443 -p 80:8080 \ --sysctl net.core.somaxconn=4096 \ --privileged=true \ -v /mnt/quay/config:/conf/stack:Z \ -v /mnt/quay/storage:/datastorage:Z \ -d registry.redhat.io/quay/quay-rhel8:v3.15.7NoteCreate
/mnt/quay/storageon each node before running the registry container. Image blobs are stored in Ceph Object Gateway for this high availability example, but Red Hat Quay still uses/datastoragefor thestorage_pathdefined inconfig.yaml.-
Open a browser to the URL of the node running the
Quaycontainer. -
Log in to Red Hat Quay with the superuser account defined in
config.yamland confirm that the registry is working. - Repeat the deployment on the remaining Red Hat Quay nodes in the cluster.
- Optional. To add Clair image scanning or repository mirroring, continue with the following sections.
5.1. Add Clair image scanning to Red Hat Quay Copy linkLink copied to clipboard!
Setting up and deploying Clair image scanning for your Red Hat Quay deployment is described in Clair Security Scanning.
5.2. Add repository mirroring to Red Hat Quay Copy linkLink copied to clipboard!
Enabling repository mirroring allows you to create container image repositories on your Red Hat Quay cluster that match the content of a selected external registry, then sync those repositories on a regular schedule and on demand.
Procedure
-
Set
FEATURE_REPO_MIRROR: truein yourconfig.yamlfile. For optional mirroring fields, see Enabling repository mirroring for Red Hat Quay. Start the repository mirroring worker on a Red Hat Quay node:
$ sudo podman run -d --name mirroring-worker \ -v /mnt/quay/config:/conf/stack:Z \ -v /root/ca.crt:/etc/pki/ca-trust/source/anchors/ca.crt \ registry.redhat.io/quay/quay-rhel8:v3.15.7 repomirrorIf you do not use a custom CA certificate, omit the
-v /root/ca.crt:…line.- Restart the Red Hat Quay registry containers so they load the updated configuration.
- Create mirrored repositories in the Red Hat Quay web UI as described in Repository Mirroring in Red Hat Quay.