Upgrade the analytics subsystem to a newer version of API Connect on
Kubernetes.
Before you begin
Review and complete all steps in:
About this task
Upgrade the analytics subsystem by updating the version property in your analytics CR. The API Connect operator detects
this change and starts the upgrade.
Procedure
- Update the analytics CR for the new version of API Connect.
- Run the following command to edit the CR:
kubectl -n <namespace> edit a7s
- Set the
spec.version
property in the analytics CR to your target
version:
For example:
version: 10.0.8.1
- If you are upgrading to a version of API Connect that requires a
new license, update
spec.license
.
- Optional: Set the size of local database backup
storage.
Upgrades to V10.0.8.0: By default the
new PVC that is created for the analytics subsystem's
local database backups is set to 150Gi. If you want to specify a larger size,
then add the following to the CR
spec
section:
storage:
backup:
volumeClaimTemplate:
storageClassName: <storage class>
volumeSize: <size>
where:
- Save your changes to the CR.
When you save the updated CR, the upgrade starts automatically.
Troubleshooting: If you see an error message when you attempt to save the CR, see the
known upgrade issues.
- Run the following command to verify that the upgrade was successful:
kubectl get apic -n <namespace>
Example output after an analytics subsystem upgrade:
NAME READY STATUS VERSION RECONCILED VERSION AGE
analyticscluster.analytics.apiconnect.ibm.com/analytics 5/5 Running <version> <version-build> 121m
If the upgrade
appears to be stuck, showing the status of Pending
for a long time, then check the
analytics CR status for
errors:kubectl -n <namespace> get a7s -o yaml
Refer
to Troubleshooting upgrades on Kubernetes, for known
issues.
- Update analytics profile.