Upgrading the analytics subsystem on Kubernetes

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

  1. Update the analytics CR for the new version of API Connect.
    1. Run the following command to edit the CR:
      kubectl -n <namespace> edit a7s
    2. Set the spec.version property in the analytics CR to your target version:

      For example:

      version: 10.0.8.1
    3. If you are upgrading to a version of API Connect that requires a new license, update spec.license.

      For example:

      license: L-DZZQ-MGVN8V

      For the list of licenses, see API Connect licenses.

    4. 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:
    5. 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.

  2. 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.

  3. Update analytics profile.
    If your analytics subsystem uses the n3xc4.m16 profile, then update the profile in your analytics CR to n3xc4.m32. For information about switching profiles, see Changing deployment profiles on Kubernetes and OpenShift