Perform an Upgrade
On this page
Upgrades include either upgrading the Operator, or upgrading the SingleStore YAML configuration files.
As new versions of the Kubernetes API are released, some of these object manifests will need to be updated to match the updates to the Kubernetes API.
SingleStore recommends using the latest object definition files when performing an upgrade and upgrading one component at a time.
Version Compatibility
Before performing an upgrade, verify that the Operator version is compatible with the target engine version.
Operator and Engine Compatibility Matrix
|
Engine Version |
Minimum Operator Version |
Recommended Operator Version |
|---|---|---|
|
9. |
4. |
Latest version |
|
8. |
3. |
Latest version |
Note
SingleStore recommends always using the latest Operator version.
Upgrade the Operator
Note
Please confirm that the cluster is stable before performing the upgrade.
Typically, upgrading the Operator will cause the cluster to restart.
-
Edit the sdb-operator.
yaml file and update spec.with a later version of Operator image.template. spec. containers[0]. image Note: When upgrading from Operator 1.
2. 5 or earlier, be sure to include the required --cluster-idfield and a value to this file.Refer to the sdb-operator. yaml file for additional information. -
Apply the upgrade.
kubectl apply -f sdb-operator.yaml
Upgrade the SingleStore Engine
Note
To upgrade to SingleStore version 8.
Please confirm that the cluster is stable before performing the upgrade.
-
Edit the sdb-cluster.
yaml file and replace spec.andnodeImage. repository spec.with a later version of the node image.nodeImage. tag -
Apply the upgrade.
kubectl apply -f sdb-cluster.yaml
Should an upgrade to SingleStore version 8.
-
Update
spec.totemplate. spec. containers[0]. image singlestore/operator:3..40. 3-d2c54262 -
Delete the
leaf-ag1StatefulSet.
Warning
It is only possible to upgrade to a later SingleStore engine image.
Upgrade Best Practices
Upgrade Order
-
Verify that the cluster is stable before starting the upgrade.
-
Back up all databases.
-
Upgrade the Operator to a version that is compatible with the target engine version.
-
Verify that the Operator is reconciling successfully by checking the Operator logs.
Refer to View the Operator Logs for more information. -
Upgrade the engine by updating the
nodeImagefields in the CR file and applying it.
Rollback
-
Operator: Revert
sdb-operator.to the previous image and reapply it.yaml -
Engine: Engine downgrades are not supported.
Restore from a backup if necessary. A backup can only be restored to the same engine version or a later version.
Last modified: