How-to guide / Operate a cluster
Roll back an activation
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
Use kix rollback to reapply the manifests from a Superseded Activation. A
direct rollback requires that Activation’s build output to remain available in
Kix’s local store.
List the rollback history
Section titled “List the rollback history”Start with kix history, which lists the earlier deploys and changes nothing:
❱ kix history how-to-application
Deployment history for 'how-to-application' on context kind-kix-docs (https://127.0.0.1:40563)
● current how-to-application-0q9xb94fxxg5 (build 0q9xb94f...) ← live on the cluster
build: /nix/store/3yhbp8sizh5bgv1xld098007saip66rg-kix-activation-how-to-application.json
Earlier deployments (most recent first):
[1] how-to-application-6n94gibgl7zv (build 6n94gibg...) deployed 2026-11-27T10:38:11.467549495+00:00 [available]
build: /nix/store/cfsz61k09jk66zw1bv31hdcjx4km9ma2-kix-activation-how-to-application.json
Next:
Run `kix rollback how-to-application` to choose a deployment interactively, or `kix rollback how-to-application -y` to restore [1]. The output marks the current Activation and lists Superseded Activations from
most recent to oldest. Check the deployment time and the local availability of
each target. A target marked build not on this machine cannot be restored by a
direct rollback on this machine.
Use structured output when a script needs the history:
❱ kix history how-to-application --output json Show outputHide output · 22 lines
{
"cluster": "how-to-application",
"kubernetes": {
"context": "kind-kix-docs",
"server": "https://127.0.0.1:40563"
},
"current": {
"name": "how-to-application-0q9xb94fxxg5",
"identity_hash": "0q9xb94fxxg5nnv8s7f1wp9ghlw7rkvq",
"built_via": "/nix/store/3yhbp8sizh5bgv1xld098007saip66rg-kix-activation-how-to-application.json"
},
"superseded": [
{
"name": "how-to-application-6n94gibgl7zv",
"identity_hash": "6n94gibgl7zv48rik94xki1n0svd3azy",
"deployed_at": "2026-11-27T10:38:11.467549495+00:00",
"built_via": "/nix/store/cfsz61k09jk66zw1bv31hdcjx4km9ma2-kix-activation-how-to-application.json",
"previous_activation": null,
"available_locally": true
}
]
} Preview the rollback
Section titled “Preview the rollback”Run a dry run and select a target from the numbered history:
❱ kix rollback how-to-application --dry-run Kix compares the active Activation with the selected target and prints the package and resource changes. The dry run stops before applying anything.
Apply the rollback
Section titled “Apply the rollback”Run the command again without --dry-run:
❱ kix rollback how-to-application Select the Activation, review the plan, and confirm it. Kix applies the target through the normal dependency scheduler and readiness checks.
Resources present only in the current Activation are reported but kept by
default. Add --prune when the rollback must also remove them:
❱ kix rollback how-to-application --prune Review those removals carefully, especially for stateful resources.
Roll back non-interactively
Section titled “Roll back non-interactively”--yes selects the most recent Superseded Activation and skips confirmation:
❱ kix rollback how-to-application --yes Use it only when the automation is intended to restore the immediately previous Activation. The command does not accept an Activation name on the command line.
Delegate to the operator
Section titled “Delegate to the operator”For an operator-managed cluster, add --operator:
❱ kix rollback how-to-application --operator Kix selects the rollback target and updates the Activation for the operator to reconcile.
Rollback history is bounded by Activation retention. If the required target has already been retired, restore it from source and deploy it as a new Activation instead.