Install by Using YAML
TOC
Use CasesPrerequisitesInstall Registry Using YAMLProcedureConfiguration ReferenceCommon FieldsVerificationUpdate Or Uninstall RegistryUpdateUninstallUse Cases
Use YAML installation for:
- Advanced users with Kubernetes expertise who prefer a manual approach.
- Deployments that require externally managed storage, such as NAS, S3-compatible object storage, or Ceph.
- Environments needing fine-grained control over TLS and ingress.
- Full YAML customization for advanced configurations.
Prerequisites
- Install the Registry Cluster Plugin to a target cluster.
- Access to the target Kubernetes cluster with kubectl configured.
- Cluster admin permissions to create cluster-scoped resources.
- Obtain a registered domain, such as
registry.example.com. For domain configuration, see Create a Domain. - Provide valid NAS storage, such as NFS.
- Optional: Provide valid S3-compatible storage.
Install Registry Using YAML
Procedure
-
Create a ClusterPluginInstance manifest file named
registry-plugin.yamlwith the following template: -
Customize the following fields according to your environment:
-
How to create a secret for S3 credentials:
Replace
<S3-CREDENTIALS-SECRET>with the name of your S3 credentials secret. -
Optional: enable registry push limits for image size and tag count.
This capability is provided by the built-in Registry proxy.
To enable it:
- Set
spec.config.registryLimitConfig.enabledtotrue. - Set
spec.config.registryLimitConfig.configMapNameto the name of a ConfigMap that you create manually in the Registry namespace.
Example:
Notes:
- The ConfigMap is not created by the Registry plugin.
- For new deployments, the recommended ConfigMap name is
image-registry-limit-config. - The runtime still accepts the legacy ConfigMap name
registry-gateway-configfor backward compatibility. - For detailed ConfigMap examples, rule behavior, and verification steps, see Configure Registry Push Limits.
When this feature is enabled, apply the ConfigMap before proceeding to step 5:
- Set
-
Apply the Registry plugin manifest to your cluster.
This command creates or updates the
ClusterPluginInstanceresource namedimage-registry, which installs or updates the Registry cluster plugin.If you enabled
registryLimitConfig, apply the limit ConfigMap described in Configure Registry Push Limits before this step.
Configuration Reference
Common Fields
Verification
- Check plugin:
- Verify registry pods:
Update Or Uninstall Registry
Update
Execute the following command on the global cluster and update the values in the resource according to the parameter descriptions provided above to complete the update:
Uninstall
Execute the following command on the global cluster: