Run your appsInstallation lifecycle

An Install is a living resource, not a one-shot deploy. Creating one returns an Operation; Akua accepts the request, places the Package on the Cluster, and the Install reports a single state until it is healthy or fails. The wire ID is inst_... and the API tag is installs.

The lifecycle states

pendingAccepted
syncingApplyingto the Cluster
healthyRunningurl set once reachable
failedDid not completeupdate again to retry

A healthy Install can turn degraded and returns to healthy once the cause is fixed. An update goes back to syncing. Deleting ends in deleted.

  • pending: the Install is accepted and work has not reached the Cluster yet.
  • syncing: Akua is applying the Package to the Cluster.
  • healthy: the Package is running on the Cluster. Once the application is reachable, url holds its web address.
  • degraded: the Install is waiting on something, such as permissions the Cluster agent does not have yet. It resumes by itself once the cause is fixed.
  • failed: the Install could not complete. A condition says why.
  • deleted: the Install has been torn down.

reconciling is true while Akua is still working on the Install, so a transient degraded is not mistaken for a stuck one.

Conditions

conditions lists what needs attention now and is empty when nothing does. Each condition has a reason, a severity, a message safe to show as is, and a remedy when something you can do helps.

  • missing-permissions (warning): the Cluster agent lacks permissions for what the Install applies. The remedy grant-access names them.
  • When state is failed, one error condition says why: render-failed, placement-failed, route-failed, endpoint-unreachable, agent-offline, agent-unsupported, abandoned, rollback-unconfirmed or storage-class-unavailable.
  • storage-class-unavailable (error): the Package claims volumes and the Cluster offers no StorageClass. A Workspace admin installs again and Akua adds local-path, or you install again naming a class the Cluster has with storage_class.

Update an installation

If you have a running Install and permission to update it in its Workspace, you can move it to another published version of the same Package, replace its inputs, or do both. Use the update endpoint, generated SDK, or akua installs update. This changes one Install only; there is no update-all command or dashboard update control.

Publishing a new version never updates an Install by itself. Only someone with permission in the Install’s Workspace can update it, so a seller can’t update a customer’s Install. A customer who installed a shared app can move their own Install to any published version of that Package, including versions the seller publishes later. The access they received covers new versions, so they need no new invite link.

To see the versions you can move to, read the Install’s package_id, then list that Package’s published versions:

akua installs get INSTALL_ID
akua packages get PACKAGE_ID

Read the Install first and pass its etag as If-Match. Select the mutable fields with update_mask and use a fresh Idempotency-Key for each intentional change. For example, with the CLI:

akua installs get INSTALL_ID
akua installs update INSTALL_ID --if-match ETAG \
    --idempotency-key UPDATE_KEY --input update.json

Replace INSTALL_ID with the Install ID, ETAG with its current etag, and UPDATE_KEY with a new nonempty key of at most 64 characters for this intended update. Keep that key when retrying the same update.

For a version-only update, save the following as update.json before running the command. Replace 2.0.0 with the published Package version you want to run:

{
	"body": {
		"package_version": "2.0.0",
		"update_mask": "package_version"
	}
}

Poll the returned Operation until it is done. A successful update keeps the Install ID, URL, namespace, and data volumes. The new Package must keep compatible volume names and data formats; retaining a volume does not migrate its data.

An Install without an HTTP output has no URL. Updating it to a version with an HTTP output allocates an address before applying the workload and publishes the URL after readiness is confirmed. Updating to another version without HTTP leaves the URL empty. An Install that already has a URL cannot update to a version without an HTTP output; that update fails before applying the workload.

Omitting inputs retains the existing configure inputs and secret references. Selecting inputs replaces the whole configure inputs object, with version defaults and locked values applied afterward; {} resets to defaults. Include every sensitive input you still need when replacing inputs.

The Install keeps showing its last successful Package version and URL while updating. On failure, conditions reports a specific reason and the Operation reports failure. Existing resources are retained, but there is no automatic rollback: some new workload resources may already have been applied. Read the latest etag, correct the version or inputs, and submit another update with a new key.

If an update fails before any workload apply can have been accepted, Akua removes the replacement secrets created only for that update and keeps the prior working secrets. Once apply may have started, replacement secrets are retained too, because the workload might need them.

While an update runs, another update conflicts, but deletion takes priority. A retry of the same intent and key recovers the original Operation, even with the original If-Match; do not generate a new key just because the response was lost.

Cancel an update

Cancel its Operation through the Operations API. Cancellation is asynchronous: poll until it finishes. Akua stops the update at a safe step boundary, reapplies the last successful version with its inputs and secret references, and confirms workload readiness and the existing URL before reporting CANCELLED. Newly stored update secrets are removed after successful restoration. Cancellation does not undo application-level data migrations.

If the last successful version had no HTTP output, successful restoration also removes the update’s address and leaves the URL empty.

If restoration cannot be confirmed, the Operation reports FAILED and the Install reports rollback-unconfirmed. The workload, address and required secrets remain available for repair; Akua does not claim the old version is serving. Correct the cause and submit another update, or delete the Install.

Delete an installation

Deleting an Install tears down the resources it created on the Cluster and moves it to deleted. The delete returns an Operation and runs in the background. Retrying with the same Idempotency-Key returns the same Operation. Other Installs of the same Package are untouched.

Deletion supersedes an active update. The update stops at its next safe step boundary and reports CANCELLED with reason superseded. Deletion waits for the update to settle, then removes the address, workload, secrets and capacity allocation. It does not restore a version that is about to be deleted.

Without a Ready node, normal deletion cannot confirm workload removal. Use force=true on the delete endpoint, or akua installs delete inst_YOUR_INSTALL --if-match ETAG --force, to remove Akua-side state even when the Cluster is unreachable or already deleted. Cleanup continues in the background. The delete Operation records unconfirmed workload removal in its steps, separately from successful Akua-side cleanup. Workloads on unreachable infrastructure might still run and require manual removal when access returns.

API