Upgrading the Tanzu SQL for Kubernetes Operator

Page last updated:

This topic describes how operators upgrade the VMware Tanzu™ SQL with MySQL for Kubernetes Operator.

Use the Helm CLI to Upgrade the Operator

To upgrade Tanzu MySQL for Kubernetes, you must download resources and upgrade the Tanzu MySQL for Kubernetes Operator using Helm.

To upgrade the Operator using the Helm CLI:

  1. Set the environment variable to enable OCI support in the Helm v3 client by running:


    If you skip this step, the following error message might appear:

    Error: this feature has been marked as experimental and is not enabled by default.

  2. Use Helm to log in to the Tanzu Network Registry by running:

    helm registry login registry.pivotal.io

    Follow the prompts to enter the email address and password for your VMware Tanzu Network account.

  3. Verify that you have a running Tanzu MySQL for Kubernetes Operator by running:

    helm -n tanzu-mysql-for-kubernetes-system ls

    For example:

    $ helm -n tanzu-mysql-for-kubernetes-system ls
    NAME                    NAMESPACE                               REVISION        UPDATED                                 STATUS          CHART                                   APP VERSION
    tanzu-mysql-operator    tanzu-mysql-for-kubernetes-system       1               2021-04-01 12:15:07.16966 -0500 CDT     deployed        tanzu-sql-with-mysql-operator-1.0.0     1.0.0
  4. Download the Helm chart to your current working directory on your local machine by running these commands:

    helm chart pull REGISTRY-URL
    helm chart export REGISTRY-URL

    Where REGISTRY-URL is the reference to the Tanzu MySQL for Kubernetes Helm chart. The value of REGISTRY-URL has the following pattern:


    Where VERSION-NUMBER-TAG is the version of the Helm chart.

    This downloads a directory named tanzu-sql-with-mysql-operator/ into your current working directory

  5. Go to where the new release has been downloaded and apply the new CRDs by running:

    kubectl apply -f ./tanzu-sql-with-mysql-operator/crds/

    Note: You can ignore the warnings in the output.

  6. Upgrade the Operator by running:

    helm upgrade tanzu-mysql-operator ./tanzu-sql-with-mysql-operator

    When you see deployed in the STATUS column, the Tanzu MySQL for Kubernetes Helm chart has upgraded:

    $ helm -n tanzu-mysql-for-kubernetes-system history tanzu-sql-with-mysql-operator
    REVISION    UPDATED                     STATUS        CHART                                  APP VERSION    DESCRIPTION
    1           Thu Jan 14 17:47:53 2021    superseded    tanzu-sql-with-mysql-operator-1.0.0     1.0.0          Install complete
    2           Thu Jan 14 18:09:05 2021    deployed      tanzu-sql-with-mysql-operator-1.0.1     1.0.1          Upgrade complete