4.5. Upgrading OpenShift Serverless
If you have installed a previous version of OpenShift Serverless, follow the instructions in this guide to upgrade to the latest version.
Before upgrading to the latest Serverless release, you must remove the community Knative Eventing operator if you have previously installed it. Having the Knative Eventing operator installed will prevent you from being able to install the latest Technology Preview version of Knative Eventing.
4.5.1. Upgrading the Subscription Channel
Prerequisites
You have installed a previous version of OpenShift Serverless Operator, and have selected Automatic updates during the installation process.
注意If you have selected Manual updates, you will need to complete additional steps after updating the channel as described in this guide. The Subscription’s upgrade status will remain Upgrading until you review and approve its Install Plan. Information about the Install Plan can be found in the OpenShift Container Platform Operators documentation.
- You have logged in to the OpenShift Container Platform web console.
Procedure
-
Select the
openshift-operators
namespace in the OpenShift Container Platform web console. -
Navigate to the Operators
Installed Operators page. - Select the OpenShift Serverless Operator Operator.
-
Click Subscription
Channel. -
In the Change Subscription Update Channel window, select
4.5
, and then click Save. -
Wait until all pods have been upgraded in the
knative-serving
namespace and theKnativeServing
custom resource (CR) reports the latest Knative Serving version.
Verification
To verify that the upgrade has been successful, you can check the status of pods in the knative-serving
namespace, and the version of the KnativeServing
CR.
Check the status of the pods:
$ oc get knativeserving.operator.knative.dev knative-serving -n knative-serving -o=jsonpath='{.status.conditions[?(@.type=="Ready")].status}'
The previous command should return a status of
True
.Check the version of the
KnativeServing
CR:$ oc get knativeserving.operator.knative.dev knative-serving -n knative-serving -o=jsonpath='{.status.version}'
The previous command should return the latest version of Knative Serving. You can check the latest version in the OpenShift Serverless Operator release notes.