1.5. 升级和迁移 Apicurio Registry 部署
您可以在 OpenShift 上自动将 Apicurio Registry 服务器从 Apicurio Registry 2.x 升级到 Apicurio Registry 2.6。不需要自动从 Apicurio Registry 1.x 升级到 Apicurio Registry 2.x,且需要迁移过程。
1.5.1. 更新 2.x 客户端依赖项 复制链接链接已复制到粘贴板!
这不是更新此版本的客户端依赖项所必需的。现有的 Apicurio Registry 2.x 客户端应用程序将继续用于 Apicurio Registry 2.6。
但是,在下一个 Apicurio Registry 版本前,您必须更新所有客户端依赖项以使用最新版本的 Apicurio Registry。客户端依赖项包括 Apicurio Registry Kafka serializers/deserializers (SerDes)、Maven 插件和 Java 客户端应用程序的依赖项。
例如,要更新 Java 客户端应用程序的 Maven 依赖项,请在 pom.xml
文件中指定版本,如下所示:
<dependency> <groupId>io.apicurio</groupId> <artifactId>apicurio-registry-client</artifactId> <version>2.6.11.Final-redhat-00001</version> </dependency>
<dependency>
<groupId>io.apicurio</groupId>
<artifactId>apicurio-registry-client</artifactId>
<version>2.6.11.Final-redhat-00001</version>
</dependency>
如需了解更多详细信息,请参阅 默认启用的传统 REST API 日期格式。
1.5.2. 从 OpenShift 上的 Apicurio Registry 2.x 升级 复制链接链接已复制到粘贴板!
您可以从 OpenShift 4.11 上的 Apicurio Registry 2.x 升级到 OpenShift 4.12 或更高版本上的 Apicurio Registry 2.6。您必须升级 Apicurio Registry 和 OpenShift 版本,并一次升级 OpenShift 次版本。
先决条件
- 您已在 OpenShift 4.11 或更高版本上安装了 Apicurio Registry 2.x。
您已在 Kafka 主题或 PostgreSQL 数据库中备份了现有的 Apicurio Registry 存储数据。如需了解更多详细信息,请参阅在 OpenShift 上安装和部署红帽构建的 Apicurio Registry。
重要在 OpenShift 的生产环境中,为确保在升级前备份存储,最好将 Apicurio Registry 的 Operator 更新批准策略设置为 manual 而不是自动。
流程
- 在 OpenShift Container Platform Web 控制台中,单击 Administration,然后单击 Cluster Settings。
-
点 Channel 字段旁边的铅笔图标,然后选择下一个次发行版本(例如,从
stable-4.11
改为candidate
-4.12 - 点 Save 然后点 Update,等待升级完成。
-
如果 OpenShift 版本小于 4.13,请重复步骤 2 和 3,然后选择
candidate-4.13
或更高版本。 - 点 Operators > Installed Operators > Red Hat Integration - Service Registry。
-
确保 更新频道 设置为
2.x
。 -
如果 Update approval 设为 Automatic,则应在设置
2.x
频道后立即批准并安装升级。 - 如果 Update approval 设为 Manual,点 Install。
- 等待 Operator 部署并部署了 Apicurio Registry pod。
- 验证您的 Apicurio Registry 系统是否正在运行。
其他资源
- 有关如何在 OpenShift Container Platform Web 控制台中设置 Operator 更新频道的更多详细信息,请参阅为 Operator 更改更新频道。
1.5.3. 从 OpenShift 上的 Apicurio Registry 1.1 迁移 复制链接链接已复制到粘贴板!
有关从 Apicurio Registry 1.1 迁移到 Apicurio Registry 2.x 的详情,请参阅 迁移红帽构建的 Apicurio Registry 部署。