Updating the Spyre operator
As a cluster administrator, you can configure either an automatic or manual update strategy for the IBM Spyre Operator.
Prerequisites
- You have cluster administrator privileges for your OpenShift Container Platform cluster.
- The IBM Spyre Operator is already installed in your cluster.
- You have reviewed the release notes for the target version to identify any breaking changes or new requirements.
- You have backed up your current SpyreClusterPolicy configuration.
Updating the Spyre operator
As a cluster administrator, you can configure either an automatic or manual update strategy for the IBM Spyre Operator.
- Select the Subscription Update Channel, click Save.
- Verify if the the CatalogSourse and csv are updated.
- Recreate the SpyreClusterPolicy to ensure the upgraded cluster is governed correctly.
Updating the Spyre Operator through the OpenShift Web Console
You can update the IBM Spyre Operator to a newer version through the OpenShift Container Platform Web Console.
Prerequisites
- You have configured a manual update strategy for the IBM Spyre Operator.
- A new version of the IBM Spyre Operator is available in your configured channel.
Procedure
- From the OpenShift Container Platform Web Console, navigate to Operators and select Installed Operators.
- Select the spyre-operator namespace from the project dropdown menu.
- Locate the IBM Spyre Operator in the list of installed operators. If an update is available, you will see an Upgrade available status indicator.
- Click on the operator name to view details.
- Navigate to the Subscription tab.
- Review the available update channel and version information.
- Click Approve to start the update process.
- Monitor the update progress in the operator details page. Wait for the status to show Succeeded.
- Verify the new operator version by checking the Installed Version field in the operator details.
- Navigate to Workloads > Pods and verify that the operator pods are running with the new version.
Updating the Spyre Operator through the CLI
You can update the IBM Spyre Operator to a newer version using the OpenShift CLI.
Prerequisites
- You have access to the OpenShift CLI (
oc). - You have cluster administrator privileges.
- You have configured a manual update strategy for the IBM Spyre Operator.
Procedure
- Check the current operator version by running the following command:
oc get csv -n spyre-operator | grep spyre-operator - View available update channels and versions:
oc get packagemanifest spyre-operator -n openshift-marketplace -o yaml - Check for pending updates:
oc get installplan -n spyre-operatorThe output displays any pending install plans that require approval.
- Monitor the update progress:
oc get csv -n spyre-operator -wWait until the new ClusterServiceVersion (CSV) shows a
Succeededphase. - Verify the operator pods are running with the new version:
oc get pods -n spyre-operator - Check the operator logs to ensure there are no errors:
oc logs deployment/spyre-operator-controller-manager -n spyre-operator
Updating the SpyreClusterPolicy after operator update
After updating the IBM Spyre Operator, you may need to update the SpyreClusterPolicy to use new component versions.
Prerequisites
- The IBM Spyre Operator has been successfully updated to the new version.
- You have reviewed the release notes to identify required component version updates.
Procedure
- From the OpenShift Container Platform Web Console, navigate to Operators > Installed Operators > IBM Spyre Operator.
- Select the Spyre Cluster Policy tab.
- Click on the existing spyreclusterpolicy resource.
- Select the YAML tab to edit the policy.
- Update the version fields for the components as needed.
- Click Save to apply the changes.
- Monitor the rollout of updated components by running the following command:
oc get pods -n spyre-operator -wWait for all component pods to restart and reach a
Runningstate. - Verify the SpyreClusterPolicy status shows ready:
oc get spyreclusterpolicy -n spyre-operator - Check the SpyreNodeState resources to ensure all devices remain healthy:
oc get spyrenodestate -A - For each worker node with Spyre cards, verify the device health:
Ensure all Spyre cards show a
healthystatus.