This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.4. 使用 CRD 启用 Image Registry 默认路由
				在 OpenShift Container Platform 中 Registry Operator 控制 registry 的功能。这个 Operator 由 configs.imageregistry.operator.openshift.io CRD(Custom Resource Definition)定义。
			
如果您需要自动启用Image Registry默认路由,请对 Image Registry Operator CRD 进行 patch 处理。
流程
- 对 Image Registry Operator CRD 进行 patch 处理: - oc patch configs.imageregistry.operator.openshift.io/cluster --type merge -p '{"spec":{"defaultRoute":true}}'- $ oc patch configs.imageregistry.operator.openshift.io/cluster --type merge -p '{"spec":{"defaultRoute":true}}'- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow