Skip to content

Upgrading

A Turf™ release is one image, so an upgrade moves the server, the engine and the console to the same new tag together. The rules:

  1. Replace every 1.x engine replica before a 1.y replica serves.
  2. Keep the replicas alike: the same --data-dir, the same CLI configuration, the same image.
  3. Expect rollouts in flight to stop, and run up again for what remains.

Read the release’s notes first: a minor release says in “Before you upgrade” what changes.

A plain Deployment rolls every replica together with strategy: Recreate, so no two replicas serve different releases or configuration images:

spec:
replicas: 2
strategy:
type: Recreate

All replicas need the same --data-dir and the same CLI configuration. Pin each module’s source, a git source to a ref and a registry source to an exact version: a replica that has never seen a module fetches it at its first apply, and a source that could install differently on two replicas is refused by name until it is pinned.

A RestateDeployment on Knative carries one knative.tag per Turf minor release. Change the tag with the image:

knative:
tag: v1-5
containers:
- image: ghcr.io/turfbuild/turf-mcp-server:v1.5.0

A new tag is a new Restate deployment: restate-server sends new work to it, and the old one finishes what it started, then drains. The same tag with a new image updates in place, which Restate allows only for a change compatible with invocations in flight.

An upgrade stops every rollout still on the old engine:

  • one waiting for approval, or for a turf action, ends cancelled, with the upgrade named as the cause;
  • one in the middle of an apply finishes what is in flight and ends partial.

Everything already applied is kept. Run up again, and plan plans what remains.

Move the server and the console to the same tag as the engine. A Turf CLI must be the same release as the server it drives. The server keeps open’s var and var_file in memory only: after it restarts, open each workspace again with the same values.

  • RESTATE_EXPERIMENTAL_ENABLE_PREFLIGHT_SIGNAL_RECORDING is one-way: once a node has run with it, its data cannot go back to a release before 1.8.1.
  • The partition count is fixed when a node first provisions.
  • On a Restate operator upgrade, check the operator’s release notes: a CRD change may need applying before the new image rolls out.

1.5 ships under the Turf Community Edition License 1.0, and does nothing until the license terms are accepted. Besides the new tag:

  • add TURF_ACCEPT_EULA=yes as an env entry in each Turf container, the engine, the server and the console, before 1.5 rolls out (Minimal manifests);
  • then replace every 1.4 replica before a 1.5 replica serves.

Setting the entry accepts the terms at turf.build/license/v1, so read them first. The image does not set it for you. Without it:

  • the engine and the console exit with status 77, and their pods go to CrashLoopBackOff;
  • the server starts, and answers every call with the license notice.

1.4 adds the console. Besides the new tag:

  • add the console’s Deployment and its token Secret (Minimal manifests);
  • admit the console’s pods to restate-server’s ingress;
  • set TURF_CONSOLE_URL on the server, so every result links to the console.

If your MCP client has a call timeout under a minute, set the server’s --deadline below it. kagent gives a call 30 seconds by default. The kagent example raises that to five minutes and runs --deadline=4m, under it.

Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.

© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub