Upgrade the Redpanda Operator

Upgrading the Redpanda Operator ensures your deployment benefits from the latest features, fixes, and improvements. Follow these steps carefully to ensure a successful upgrade.

  1. Make sure to review the release notes to understand any significant changes, bug fixes, or potential disruptions that could affect your existing deployment.

  2. Review the Kubernetes compatibility matrix and determine the version of the Redpanda Operator that is compatible with the Helm chart version you plan to use. The Redpanda Operator must be able to understand and manage the Helm chart and the Redpanda version you are deploying.

  3. Back up your current Helm values for the Redpanda Operator Helm chart:

    helm get values redpanda-controller --namespace <namespace> > redpanda-operator-values-backup.yaml

    You’ll need to apply these overrides in the next step.

  4. Upgrade the Redpanda Operator. Replace <operator-version> with the version of the Redpanda Operator you want to upgrade to.

    helm repo add redpanda https://charts.redpanda.com
    helm repo update
    helm upgrade redpanda-controller redpanda/operator \
      --namespace <namespace> \
      --version <operator-version> \
      --set crds.enabled=true

    This command:

    • Pins the upgrade to a specific version of Redpanda Operator.

    • Ensures the latest CRDs are applied as part of the upgrade.

      Omitting custom overrides may result in a broken or partial deployment.
  5. Ensure that the Deployment is successfully rolled out:

    kubectl --namespace <namespace> rollout status --watch deployment/redpanda-controller-operator
    deployment "redpanda-controller-operator" successfully rolled out