DocumentationBuild. Deploy. Operate.
DocsOperation

Upgrading

On this page 5 sections

Upgrade native installations through APT and container deployments by replacing the image. Preserve each node's configuration, identity and state storage. Read the release notes and check compatibility before upgrading or rolling back; restart time and availability depend on the deployment and its retained state. Registration is not required to upgrade a free deployment.

Standard upgrade

sudo apt-get update
sudo apt-get install --only-upgrade qscs-bootstrap
sudo systemctl restart qscs
/opt/qscs/bin/qscs --version

The reported version string should match the new release.

Container and Kubernetes upgrades

Use docker.io/spooksystems/qscs:latest with imagePullPolicy: Always. Kubernetes resolves the tag when it starts a container; publishing an image does not update running pods automatically. Record the currently running image digest before starting a controlled rollout.

Keep the image's default command, the same bootstrap inputs and each replica's existing persistent volume at /var/lib/qscs. Allow at least the configured graceful shutdown period. Do not delete PVCs or generate new enrollment secrets as part of an upgrade. Claiming a deployment does not require replacing its existing enrollment identity.

Update one member at a time where the workload permits, checking its version, readiness, application responses and peer connectivity before proceeding. For an example namespace and pod:

kubectl -n qscs get pods
kubectl -n qscs exec qscs-0 -- qscs --version
kubectl -n qscs exec qscs-0 -- qscs status
kubectl -n qscs logs qscs-0 --tail=80

See Kubernetes deployment for storage, networking and readiness settings. A single-node deployment has an interruption while its container is replaced.

  1. Pick a quiet window.
  2. Upgrade thin clients first, one at a time. While one thin client restarts the others (and the master) keep serving traffic.
  3. Upgrade the master last. During its restart, thin clients may serve eligible retained responses in HEADLESS mode. Requests requiring the live upstream can still be interrupted.
  4. Verify membership and the applied configuration. Follow any migration steps in the release notes; routine upgrades do not require re-enrollment or a new claim.

Verifying after upgrade

sudo systemctl is-active qscs        # active
/opt/qscs/bin/qscs --version          # new version
curl -i -H "Host: <origin>" http://127.0.0.1:8080/   # 200 OK with X-QSCS-Mode

And check the journal for the role-detection line:

sudo journalctl -u qscs -n 50 --no-pager | grep -E "role=|Origin reg"

Rolling back

If a compatible previous package remains available in the APT repository, select it explicitly:

sudo apt-get install qscs-bootstrap=<old-version>
sudo systemctl restart qscs

For containers, select a compatible previous image digest and redeploy with the same volume. Check state and configuration compatibility first; an old binary is not automatically safe with state written by a newer release.

Preserve identity through an upgrade Back up configuration and persistent state before changes that require migration. Enrolled nodes continue using their signed membership. For a native node using the direct registered-account subscription flow, use qscs subscribe only when a documented migration or recovery requires it.
Need a hand with your deployment?Contact support ↗Back to top ↑