Upgrade on kind
To upgrade your Materialize instances, upgrade the Materialize operator first
and then the Materialize instances. The following tutorial upgrades your
Materialize deployment running locally on a kind
cluster.
The tutorial assumes you have installed Materialize on kind using the
instructions on Install locally on kind.
Version compatibility
When updating, you need to specify the Materialize Operator version,
orchestratord version, and the environmentd versions. The following table
presents the versions compatibility for the operator and the applications:
| Materialize Operator | orchestratord version | environmentd version | Release date | Notes |
|---|---|---|---|---|
| v25.1.10 | v0.142.1 | v0.130.11 | 2025-04-24 | |
| v25.1.9 | v0.141.0 | v0.130.10 | 2025-04-24 | |
| v25.1.8 | v0.138.0 | v0.130.9 | 2025-04-24 | |
| v25.1.7 | v0.138.0 | v0.130.8 | 2025-04-08 | |
| v25.1.6 | v0.130.8 | v0.130.8 | 2025-03-26 |
This release uses an incorrect version of orchestratord as its
default (v0.130.8 instead of v0.138.0). This has been fixed in
v25.1.7.
|
| v25.1.5 | v0.138.0 | v0.130.7 | 2025-03-25 | |
| v25.1.4 | v0.138.0 | v0.130.7 | 2025-03-25 | |
| v25.1.2 | v0.130.4 | v0.130.4 | 2025-03-11 |
Prerequisites
Helm 3.2.0+
If you don’t have Helm version 3.2.0+ installed, install. For details, see the Helm documentation.
kubectl
This tutorial uses kubectl. To install, refer to the kubectl
documentationq.
For help with kubectl commands, see kubectl Quick
reference.
Upgrade
The following procedure performs an in-place upgrade, which incurs downtime.
To perform a rolling upgrade(where both the old and new Materialize instances
are running before the the old instances are removed), you can specify
inPlaceRollout to false. When performing a rolling upgrade, ensure you have
enough resources to support having both the old and new Materialize instances
running.
-
Open a Terminal window.
-
Go to your Materialize working directory.
cd my-local-mz -
Upgrade the Materialize Helm chart.
helm repo update materialize -
Get the sample configuration files for the new version.
mz_operator_version=v0.153.0 curl -o upgrade-values.yaml https://raw.githubusercontent.com/MaterializeInc/materialize/refs/tags/$mz_operator_version/misc/helm-charts/operator/values.yamlIf you have previously modified the
sample-values.yamlfile for your deployment, include the changes into theupgrade-values.yamlfile. -
Upgrade the Materialize Operator, specifying the new version and the updated configuration file. Include any additional configurations that you specify for your deployment.
helm upgrade my-materialize-operator materialize/materialize-operator \ --namespace=materialize \ --version v25.1.13 \ -f upgrade-values.yaml \ --set observability.podMetrics.enabled=true -
Verify that the operator is running:
kubectl -n materialize get allVerify the operator upgrade by checking its events:
MZ_OPERATOR=$(kubectl -n materialize get pods --no-headers | grep operator | awk '{print $1}') kubectl -n materialize describe pod/$MZ_OPERATOR -
Create a new
upgrade-materialize.yamlfile with the following content:Field Description environmentdImageRefUpdate the version to the new version. requestRolloutorforceRolloutEnter a new UUID. Can be generated with uuidgen.
requestRollouttriggers a rollout only if changes exist.forceRollouttriggers a rollout even if no changes exist.
inPlaceRolloutSet to trueto perform an in-place upgrade.
Set tofalseto perform a rolling upgrade. For rolling upgrades, ensure you have enough resources to support having both the old and new Materialize instances running during the upgrade.apiVersion: materialize.cloud/v1alpha1 kind: Materialize metadata: name: 12345678-1234-1234-1234-123456789012 namespace: materialize-environment spec: environmentdImageRef: materialize/environmentd:v0.130.14 # Update version requestRollout: 22222222-2222-2222-2222-222222222222 # Enter a new UUID # forceRollout: 33333333-3333-3333-3333-333333333333 # For forced rollouts inPlaceRollout: true # When false, performs a rolling upgrade rather than in-place backendSecretName: materialize-backend -
Apply the upgrade-materialize.yaml file to your Materialize instance:
kubectl apply -f upgrade-materialize.yaml -
Verify that the components are running after the upgrade:
kubectl -n materialize-environment get allVerify upgrade by checking the
balancerdevents:MZ_BALANCERD=$(kubectl -n materialize-environment get pods --no-headers | grep balancerd | awk '{print $1}') kubectl -n materialize-environment describe pod/$MZ_BALANCERDThe Events section should list that the new version of the
balancerdhave been pulled.Verify the upgrade by checking the
environmentdevents:MZ_ENVIRONMENTD=$(kubectl -n materialize-environment get pods --no-headers | grep environmentd | awk '{print $1}') kubectl -n materialize-environment describe pod/$MZ_ENVIRONMENTDThe Events section should list that the new version of the
environmentdhave been pulled. -
Open the Materialize Console. The Console should display the new version.