midplane 0.22.0 · 0.24.0 available, and How to upgrade shows
the commands for that gateway, with the release’s version in them.
What carries over
- Deploy Midplane Cloud before gateways. A gateway’s sync reports what it supports, and a newer gateway’s calls need a cloud that knows them; an older cloud refuses its status, and the sync fails until the cloud is upgraded.
- Gateways halt rather than half-enforce. A bundle that needs a feature a gateway lacks halts it, and the dashboard warns before publishing one to a gateway that would.
- Restarts keep enforcing. A linked gateway enforces its cached bundle while it reconnects, and resumes pushing its audit log where it stopped.
- The audit file, the bundle cache and the identity carry over between versions; keep them on a volume.
Docker
Use a fixed version, such asghcr.io/midplaneai/midplane:0.24.0, not
:latest: Docker doesn’t download :latest again once the image is on the
server. Pull the new image first, so the gateway is down only between removing
its container and starting the new one. Its volume, with its identity, cached
policy and audit log, stays.
The dashboard names a gateway’s container midplane-gw- and 8 characters,
such as midplane-gw-k3m9x2qa, and How to upgrade names it when Midplane
Cloud knows it. That’s the name the page gave, so check that the server lists
it before you remove anything: docker rm -f of a name that isn’t there says
nothing, and the new container would be a second gateway. Its name starts with
midplane-.
Behind the relay
In the folder withmidplane.env, with <container> replaced by the
gateway’s container and <version> by the release’s:
At your own URL
Have thedocker run -d command you started it with at hand: it’s the one way
to start it again. Then pull the new image, and remove the container:
docker run -d command you started it with,
with the new version in place of its tag: Midplane Cloud doesn’t know the
port or the certificate you chose.
This machine
Stop the gateway (Ctrl-C), then start it again in the folder you ran setup
in, such as:
midplane@latest gets the newest release each time it starts. The folder
has the name in the gateway’s URL: http://gw-k3m9x2qa.localhost:7433 is
gw-k3m9x2qa.
Deploy templates
Each version’s template, chart and Blueprint runs that version’s image.AWS
Update the stack with the new version’s template, replacing the current one withhttps://midplane-gateway-templates.s3.eu-central-1.amazonaws.com/gateway/<version>/aws.yaml.
The instance stops and starts, and runs the new image; its disk, and with it
the gateway, stays.
Fly.io
fly machine list -a midplane-gw-… shows the id. The volume, and with it the
gateway, stays.