Upgrading Meshery

This guide walks through upgrading a running Meshery deployment. Meshery is a composition of components that upgrade in a specific order: the CLI first, the Server second, and the components on managed clusters β€” Meshery Operator, MeshSync, and Broker β€” automatically, driven by the Server. You do not upgrade the Operator by hand.

For background on which components version together, see the Upgrade Guide. For production practices (pinned versions, upgrade-friendly probes, rollback rehearsal), see the Operational Readiness Checklist.

Before you begin

  • Note your release channel (stable for production; edge for testing).
  • Record current versions so you can verify the upgrade:
mesheryctl version
kubectl -n meshery get deploy meshery-operator \
  -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'

Step 1: Upgrade mesheryctl

Use the package manager you installed with:

brew upgrade mesheryctl        # Homebrew
scoop update mesheryctl        # Scoop
curl -L https://meshery.io/install | DEPLOY_MESHERY=false bash -   # Bash

Step 2: Upgrade Meshery Server

Docker deployments

mesheryctl system update    # pull latest images per your release channel
mesheryctl system restart   # apply them to the running deployment

Kubernetes deployments (Helm)

Pin an explicit chart version rather than tracking latest, and use the upgrade-friendly probe values so Server pods are not killed while reloading capabilities:

helm repo update meshery
helm upgrade meshery meshery/meshery --namespace meshery \
  --version <target-version> \
  -f values-upgrade.yaml \
  --wait --timeout 10m

Keep your copy of values-upgrade.yaml version-controlled alongside your own values.

Step 3: Managed-cluster components upgrade themselves

When the upgraded Meshery Server (re)connects to a managed cluster, it re-applies the meshery-operator Helm chart. The version it asks for tracks the Server release, and before installing anything the Server checks that version against the chart repository’s published index - so what is actually deployed is always a chart the repository carries. If the matching chart has not been published yet (chart publishing trails Server releases), the newest published release is used instead, and the substitution is reported in the events feed rather than made silently. See How Meshery Server manages Meshery Operator for the full resolution rules, including the minimum chart version and how to pin one yourself.

That single helm upgrade, performed by the Server:

  1. runs the chart’s CRD update Job, which server-side-applies the current Broker and MeshSync CRD schemas (Helm alone never updates CRDs on upgrade β€” the Job is what delivers schema changes to live clusters);
  2. rolls the Operator Deployment to the operator image version pinned in that chart;
  3. the Operator then reconciles MeshSync and Broker to their expected versions and configuration - each a pinned release, never a moving stable-latest tag, so an Operator pod restart never changes what runs.

No action is required on managed clusters.

If the Operator does not come back after the upgrade, its status card carries the reason - a chart version that could not be resolved surfaces there and in the connection’s Diagnostics rather than disappearing. A failure caused by a transient chart-repository outage clears on its own: redeploy the Operator from the connection’s actions and the Server re-resolves the version.

Step 4: Verify

# Server and components
mesheryctl system status

# The Meshery Operator image actually running in the cluster
kubectl -n meshery get deploy meshery-operator \
  -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'

# The chart release that installed it (chart version and app version)
helm -n meshery list --filter meshery-operator

# CRDs are current (v1alpha2 storage) and healthy
kubectl get crds brokers.meshery.io meshsyncs.meshery.io

# Broker and MeshSync are reconciled and ready
kubectl -n meshery get brokers,meshsyncs
kubectl -n meshery get statefulset/meshery-nats deployment/meshery-meshsync

In Meshery UI, confirm the cluster connection shows the Operator, MeshSync, and Broker as connected under Settings β†’ Environment.

Rolling back

helm rollback meshery --namespace meshery    # Kubernetes deployments

Rolling back the Server is low-risk for data: durable state lives with your Remote Provider, and the local database is a rebuildable cache. Two notes:

  • The Operator follows the Server: after a rollback, the Server re-applies the operator chart it resolves for the rolled-back release. Rolling back far enough that the Server would name a chart older than the minimum deployable version normally still lands a working Operator - the Server raises that derived request to the oldest published chart at or above the minimum and says so in the events feed. An explicit operator.version on a connection is never raised, so a pin below the minimum survives the rollback unchanged.
  • CRD schemas are not rolled back by helm rollback directly. When the rolled-back Server reconnects to managed clusters, it re-applies the older operator chart as a Helm upgrade, and that chart’s CRD update Job re-applies the older schemas. Stored objects remain readable throughout, because served versions stay identical across current schema revisions.