Upgrade Kong Mesh

Uses: Kong Mesh
Related Documentation
Minimum Version
Kong Mesh - 2.6
Incompatible with
konnect
Tags

Upgrade from 2.x to 3.x

Version 3.x removes legacy policy APIs, mesh-wide mTLS configuration, and shared ZoneIngress and ZoneEgress resources. Prepare those resources and traffic paths while the deployment is still on 2.14; the upgrade is more than a control plane and data plane rollout.

  1. Run the Kong Mesh 3.x readiness checker against the current 2.x deployment and save the report.
  2. Bring every control plane and data plane proxy to the latest supported 2.14 patch. Only 2.14.x is compatible with 3.0.x, so you can’t upgrade to 3.0 from 2.13 or earlier. Follow the version-specific upgrade notes for every intermediate release in the upgrade path.
  3. Prepare the control planes while they are still on 2.14:
    • If your global control plane runs on Kubernetes, move it to Universal, backed by PostgreSQL. 3.x rejects a global control plane with environment=kubernetes or store.type=kubernetes, and the Helm chart fails to render one. Zone control planes on Kubernetes are unaffected.
    • For a zero-downtime upgrade, set KUMA_EXPERIMENTAL_DELTA_XDS=true on every control plane, then restart every kuma-dp (roll the workloads on Kubernetes). Delta xDS is the only xDS protocol in 3.x, and a proxy still using state-of-the-world xDS can’t connect until it restarts.
    • Set meshServices.mode: Exclusive on every Mesh, including meshes that never set the field, before upgrading the global control plane.
    • Rename the standalone control plane mode to zone. 3.x no longer accepts standalone.
    • Replace the removed KMESH_MULTIZONE_*_KDS_AUTH_* environment variables with their KUMA_MULTIZONE_*_KDS_AUTH_* equivalents. A 3.x control plane refuses to start while one of them is set, and its error names the variable to use instead. For example, KMESH_MULTIZONE_GLOBAL_KDS_AUTH_TYPE=cpToken becomes KUMA_MULTIZONE_GLOBAL_KDS_AUTH_TYPE=zoneToken, and KMESH_MULTIZONE_ZONE_KDS_AUTH_CP_TOKEN_PATH becomes KUMA_MULTIZONE_ZONE_KDS_AUTH_TOKEN_PATH.
  4. Resolve the report using the migration guides for mTLS and MeshIdentity, mesh-scoped zone proxies, gateways, and policies. The guides explain their dependencies and the order in which live traffic changes.
  5. Rerun the readiness checker against the complete estate. Resolve every blocker and coverage gap, complete its manual checks, and validate representative traffic.
  6. Upgrade the global control plane first, then a non-production zone. Repeat the product and traffic checks before proceeding through the remaining zones.

    Cross-zone traffic from an upgraded zone to a 2.14 zone fails. Once a zone runs 3.x, its proxies address other zones’ proxies with a new SNI that 2.14 zone proxies cannot match. MeshService, MeshExternalService, and MeshMultiZoneService traffic from an upgraded zone to a zone still on 2.14 fails until that zone is upgraded too. Keep the time between zone upgrades short, and check which zones depend on each other before you start.

Don’t use the normal rolling-upgrade sequence described in Single-zone and Multi-zone as a substitute for the 2.x-to-3.x migration. The readiness report identifies configuration visible through the control plane API; the migration guides cover the live traffic behavior that the report can’t verify.

Compatibility between minor versions

Starting with Kong Mesh 1.4.x, you can upgrade up to two minor versions at a time. For example:

  • You can upgrade from 2.12.x to 2.13.x.
  • You can upgrade from 2.11.x to 2.13.x.
  • To upgrade from 2.9.x to 2.13.x, first upgrade from 2.9.x to 2.11.x, then from 2.11.x to 2.13.x.

Some versions have specific upgrade instructions. Make sure to read the version-specific upgrade notes for more information.

To avoid control plane downtime when restarting on the new version, make sure you have more than one instance of the control plane in each zone.

kuma-dp follows the same compatibility rules with kuma-cp. For example:

  • You can connect kuma-dp 2.11.x to kuma-cp 2.13.x.
  • You can’t connect kuma-dp 2.10.x to kuma-cp 2.13.x. It may cause undefined behavior.

The global control plane follows the same compatibility rules with zone control planes. For example:

  • You can connect zone control plane 2.11.x to global control plane 2.13.x.
  • You can’t connect zone control plane 2.10.x to global control plane 2.13.x. It may cause undefined behavior.

Although control planes within a zone don’t connect to each other, they share a common store (usually Kubernetes or PostgreSQL). Compatibility of the storage layer also follows the minor version rules:

  • You can read any data written on control plane 2.11.x with a control plane version 2.13.x.
  • You can read any data written on control plane 2.13.x with a control plane version 2.11.x.
  • You can’t read data written on control plane 2.10.x with a control plane version 2.13.x or higher. It may cause undefined behavior.
  • You can’t read data written on control plane 2.13.x with a control plane version 2.10.x or lower. It may cause undefined behavior.

Some feature flags may not provide backward compatibility. When this is the case, it is clearly documented in the control plane configuration and is part of the experimental section.

To guarantee our compatibility policy, we always wait at least two minor versions before making these features enabled by default.

Single-zone

To upgrade Kong Mesh with a single-zone deployment, first upgrade the control plane, then upgrade data plane proxies. To upgrade data plane proxies on Kubernetes, roll out the new deployment to allow the injector to inject the newest sidecar.

Multi-zone

To upgrade Kong Mesh with a multi-zone deployment, first upgrade the global control plane. Then, upgrade the zone control planes. As a last step, upgrade data plane proxies by manually restarting them.

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!