第 2 章 OpenShift Container Platform中的Image Registry Operator
2.1. 云平台和 OpenStack 上的镜像 registry 复制链接链接已复制到粘贴板!
Image Registry Operator 安装一个单独的 OpenShift 镜像 registry 实例并管理所有 registry 配置,包括设置 registry 存储。
只有在 AWS、Azure、Google Cloud、IBM® 或 RHOSP 上安装安装程序置备的基础架构集群时,存储才会被自动配置。
当您在 AWS、Azure、Google Cloud、IBM® 或 RHOSP 上安装或升级安装程序置备的基础架构集群时,Image Registry Operator 会将 spec.storage.managementState 参数设置为 Managed。如果 spec.storage.managementState 参数设置为 Unmanaged,则 Image Registry Operator 不会执行与存储相关的操作。
在管理集群中部署 control plane 后,Operator 会根据集群中的配置创建一个默认的 configs.imageregistry.operator.openshift.io 自定义资源(CR)实例。
如果没有足够的信息来定义完整的 configs.imageregistry.operator.openshift.io CR,则会定义不完整的资源,Operator 将更新资源状态以提供缺失的内容。
Image Registry Operator 管理修剪器的行为与在 Image Registry Operator 的 ClusterOperator 对象上指定的 managementState 关联。如果 Image Registry Operator 没有处于 Managed 状态,则镜像修剪器仍然可以被 Pruning 自定义资源配置和管理。
但是,Image Registry Operator 的 managementState 会更改部署的镜像修剪器任务的行为:
-
Managed: 镜像修剪器的--prune-registry标志被设置为true。 -
删除了: 镜像修剪器的--prune-registry标志被设置为false,这意味着镜像修剪器作业仅在 etcd 中修剪镜像元数据。