Registry v2: Setting Up and Configuring the Registry
Use this page to configure storage, Registry request behavior, ServiceAccount pull credentials, image limits, and scheduled cleanup for Registry v2.
TOC
Configure Development StorageConfigure PVC StorageConfigure S3-Compatible Storage CredentialsConfigure Managed ServiceAccount Pull SecretsConfigure Image LimitsOperate StorageConfigure Development Storage
Use emptyDir only when image data can be discarded:
Configure PVC Storage
Use a persistent backend for production. For a pre-created PVC:
Configure S3-Compatible Storage Credentials
Create the user-managed storage Secret before applying Config/cluster. The Operator merges this Secret into the Registry private configuration:
Then configure the S3 backend:
Use disableRedirect: true when clients cannot reach the object storage endpoint directly and all content must be served through the Registry.
Configure Managed ServiceAccount Pull Secrets
The Operator includes a managed imagePullSecret controller. When Config/cluster is managed, the controller can create, inject, refresh, and remove ServiceAccount pull secrets for the internal Registry.
Configure additional hosts or ignored namespaces:
Configure Image Limits
In Registry v2, image size and tag-count limits are represented with Kubernetes LimitRange and ResourceQuota objects. Do not use the legacy Registry gateway limit ConfigMap for Registry v2 deployments.
Namespace-level quota:
Per-image and per-ImageStream limits:
Legacy max_image_size and tag_count_limit settings can be converted during migration. See Migrating from the legacy ACP Registry.
Operate Storage
For PVC-backed Registry storage:
Common actions:
- If a PVC is pending, check StorageClass, access mode, capacity, quotas, and events.
- If a Registry Pod cannot mount storage, check PV binding, node attachment, and backend storage availability.
- If image metadata exists but blob data is missing, verify whether the Registry used
emptyDiror whether the storage backend was changed. - Do not delete PVCs, PVs, or object storage data until the data retention decision is confirmed.