第 6 章 Upgrading an Operator-based broker deployment
Upgrading an Operator-based broker deployment involves upgrading the Operator and broker container images.
6.1. Before you begin 复制链接链接已复制到粘贴板!
This section describes some important considerations before you upgrade the Operator and broker container images for an Operator-based broker deployment.
Upgrade the Operator and the broker images in two separate steps, beginning with the Operator upgrade, to ensure that the upgrade runs smoothly.
To separate the upgrade of the broker images from the Operator upgrade, you must prevent the upgraded Operator from automatically upgrading the broker container images to the latest version supported by the new Operator. You can prevent this automatic upgrade by setting the
versionattribute in the CR. For example, you can set the value of theversionattribute to the version of the broker images currently deployed, which is displayed in thestatussection of the CR. For more information, see 第 6.6.1 节 “Restricting automatic upgrades of images by using version numbers”.- Upgrading the Operator using either the OpenShift command-line interface (CLI) or OperatorHub requires cluster administrator privileges for your OpenShift cluster.
If you originally used the CLI to install the Operator, you should also use the CLI to upgrade the Operator. If you originally used OperatorHub to install the Operator (that is, it appears under
for your project in the OpenShift Container Platform web console), you should also use OperatorHub to upgrade the Operator. For more information about these upgrade methods, see: If the
redeliveryDelayMultiplierand theredeliveryCollisionAvoidanceFactorattributes are configured in the main broker CR in a 7.8.x or 7.9.x deployment, the new Operator is unable to reconcile any CR after you upgrade to 7.10.x or later. The reconcile fails because the data type of both attributes changed from float to string in 7.10.x.You can work around this issue by deleting the
redeliveryDelayMultiplierand theredeliveryCollisionAvoidanceFactorattributes from thespec.deploymentPlan.addressSettings.addressSettingattribute. Then, configure the attributes under thebrokerPropertiesattribute. For example:spec: ... brokerProperties: - "addressSettings.#.redeliveryMultiplier=2.1" - "addressSettings.#.redeliveryCollisionAvoidanceFactor=1.2"注意Under the
brokerPropertiesattribute, use theredeliveryMultiplierattribute name instead of theredeliveryDelayMultiplierattribute name that you deleted.