Check upgrade readiness for Kong Mesh 3.x

Uses: Kong Mesh

Before upgrading to Kong Mesh 3.x, run the Kong Mesh 3.x readiness checker against your 2.x control plane. The checker finds configuration that must change before the upgrade and writes a self-contained HTML report that you can keep with your migration records.

Run it early to establish the migration work, then run it again on the latest supported 2.14 patch after making the changes. Don’t upgrade the first zone until the final report has no blockers or coverage gaps and you have completed its manual checks.

A clean report covers only what the checker can read from the control plane. It does not prove that DNS, firewalls, certificates, gateways, external systems, or application traffic behave as intended. Complete the traffic validation in the relevant migration guides before upgrading.

Audit scope

The checker audits the control plane API for:

  • Control planes and data plane proxies that aren’t on versions compatible with the upgrade
  • Legacy policies, services, gateways, zone proxies, and other resources removed in 3.x
  • Mesh settings replaced by MeshIdentity, MeshTrust, MeshMetric, MeshTrace, MeshAccessLog, and other resources
  • Policy target references, directions, and fields that 3.x removes or interprets differently
  • Control plane settings that must change before the upgrade
  • Resource names that don’t meet the naming requirements in 3.x

The report also lists checks that can’t be completed through the control plane API. Treat those items as part of the migration, even when the automated findings are clear.

Download the checker

These instructions use kong-mesh-v3-preflight version v0.6.6.

Confirm that the binary is available and reports version v0.6.6:

kong-mesh-v3-preflight --version

You can also build the checker with Go. See the Kong Mesh 3.x readiness repository for the source and the complete flag reference.

Choose the control plane to audit

  • Multi-zone: Connect to the global control plane. A global audit checks its connected zone control plane versions and the zone configuration reported through insights, so use one report as the estate-wide starting point.
  • Single-zone: Connect directly to the zone control plane.
  • One mesh: Add --mesh MESH_NAME when investigating a mesh. Don’t use a mesh-scoped report as the final estate-wide gate.

The checker reads GET /config to assess important control plane settings. In Kong Mesh, that endpoint is protected by RBAC, so use a token that can read it. Without the token, the checker records a coverage gap and returns an inconclusive result.

Export the control plane API address and a token that can read GET /config. Replace YOUR_TOKEN with your token:

export KUMA_CONTROL_PLANE_URL='http://localhost:5681'
export KUMA_TOKEN='YOUR_TOKEN'

Run the audit

If the Kubernetes control plane API isn’t already reachable, forward its API port in one terminal:

kubectl -n kong-mesh-system port-forward svc/kong-mesh-control-plane 5681:5681

In another terminal, create the report:

kong-mesh-v3-preflight \
  --address "$KUMA_CONTROL_PLANE_URL" \
  --token "$KUMA_TOKEN" \
  --output mesh-3-readiness.html

Open mesh-3-readiness.html, then work through the automated findings and manual checks.

For a large deployment, the checker stops admitting resource items after its configured read limit. A report that reaches that limit is inconclusive. Raise --max-resource-reads and rerun it until every required collection is covered.

To compare versions, the checker looks up the latest 2.14 patch from the GitHub releases API. If the machine running it can’t reach GitHub, such as in an air-gapped environment, that check becomes a coverage gap and the report is inconclusive. Pass the latest 2.14 patch version with --latest-version instead.

By default, the checker doesn’t inspect data plane Envoy configuration because inspection requires an additional read for each proxy. If the deployment might use the legacy Envoy DNS filter, add --inspect-dataplanes NUMBER and choose enough representative proxies to cover where that filter could be configured. An audit without this option doesn’t check for that filter.

Interpret the result

The command exits with 0 whenever it produces a report, even when the report contains blockers or coverage gaps. It exits with 2 only when the audit can’t run, for example because of a connection, authentication, or address error.

The report’s status describes the audit result:

Status

Meaning

Next action

clean The checker found no automated blocker or coverage gap. Complete the report’s manual checks and validate traffic.
blockers The checker found one or more upgrade blockers. Resolve every blocker, then rerun the checker.
inconclusive The audit is incomplete. Resolve every coverage gap, then rerun the checker.

Use the finding type to continue the migration:

Finding

Continue with

Unsupported control plane or data plane version Upgrade Kong Mesh and the version-specific upgrade notes
Mesh.mtls, identity, trust, or identity-based permission Migrate mesh mTLS to MeshIdentity
ZoneIngress, ZoneEgress, or legacy zone routing Migrate zone proxies to Kong Mesh 3.x
Legacy policy or incompatible policy field Migrate policies to Kong Mesh 3.x
ExternalService MeshExternalService and the zone-proxy migration
Legacy gateway resource Migrate gateways to Kong Mesh 3.x
Legacy service discovery or service selection MeshService

One finding can require changes from more than one guide. For example, replacing Mesh.mtls also requires identity-based MeshTrafficPermission rules, while MeshExternalService clients need mesh-scoped zone egress before they switch to MeshIdentity.

Use the final report as an upgrade gate

After completing the migrations, run an estate-wide audit again while every control plane is still running the latest supported 2.14 patch. Before upgrading the first zone, confirm that:

  • The report status is clean.
  • The report contains no coverage gaps.
  • Every manual check in the report is complete.
  • The identity, authorization, routing, resilience, telemetry, cross-zone, and external-service paths relevant to the deployment pass their traffic tests.

Keep the final HTML report with the exported 2.x configuration and the deployment’s migration record. The checker audits a 2.x control plane; use the product validation steps after each control plane upgrade rather than rerunning the preflight tool against 3.x.

Generate a report in CI

Use JSON when the audit needs to gate an automated migration workflow. Because the command exits with 0 even when it finds blockers, gate the workflow on the report’s status field rather than on the exit code:

kong-mesh-v3-preflight \
  --address "$KUMA_CONTROL_PLANE_URL" \
  --token "$KUMA_TOKEN" \
  --format json \
  --output mesh-3-readiness.json

You can render the captured data as HTML later without reconnecting to the control plane:

kong-mesh-v3-preflight \
  --from-json mesh-3-readiness.json \
  --format html \
  --output mesh-3-readiness.html

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!