Skip to main content
Starting with Orka 4.0, the CLI command is orka. On Orka 3.6, it’s orka3: replace orka with orka3 in the examples on this page. To upgrade a 3.6 cluster to 4.0, use the orka CLI 4.0.1 or later. The --dry-run, --force-macos, --macos-idle-timeout, and --skip-component flags also need the orka CLI 4.0.1 or later.

Understanding cluster upgrades

The orka upgrade commands drive Orka Upgrade Service. An upgrade is a run that moves Upgrade Service and its agents, then Mac node components, then the control plane and remaining Orka services to a target release, in that order. Only one run is active at a time. Upgrade Service keeps the 10 most recent completed runs, including failed ones, and you retry a failed upgrade by starting a new run. For when to use Upgrade Service, how to install it on your deployment, and how to troubleshoot a run, see Orka Upgrade Service.

Starting an upgrade

orka upgrade run

Start an upgrade by creating a run for the target release. Run names are timestamped, so a retry never collides with an earlier run. Admin only: Starting an upgrade requires administrative privileges.
On an Orka Anywhere cluster upgrading from 3.6 to 4.0, apply the 4.0 permissions, webhook configurations, and Upgrade Service CRDs first, and pass --version 4.0.0. Don’t use --dry-run for this upgrade: the 3.6 Upgrade Service doesn’t support dry runs and would start a real upgrade. The CLI can’t resolve latest against a 3.6 cluster’s Upgrade Service either. See Upgrade a self-managed Orka Anywhere cluster.
On a MacStadium-hosted cluster, --dry-run works on Orka 3.6, including for the upgrade to 4.0. Syntax:
Options:
Examples:
latest resolves to the highest release marked available in the MacStadium release index, which can be a newer release line than your cluster’s. To stay on a specific release, pass its exact version. The CLI refuses a target release newer than the CLI itself, so update the CLI first.

macOS upgrades on MacStadium-hosted clusters

A release can pin a macOS version: Orka 4.0.0 installs macOS 26.6.2. On MacStadium-hosted clusters, a run to that release also upgrades every node below that macOS. To see the macOS each release installs, run orka upgrade versions. On Orka Anywhere clusters, runs upgrade Orka only and leave macOS as it is. Upgrade Service upgrades one node first. If that node succeeds, it upgrades up to 20 nodes at a time. Each node is cordoned while it upgrades, so no new VMs start on it, and it’s rebooted, possibly several times. A node’s macOS upgrade can take up to 2 hours, plus the idle timeout, so plan for that much lost capacity per node, across up to 20 nodes at once. Nodes already on the target macOS or newer aren’t cordoned or rebooted, unless an earlier run left them cordoned.
The macOS installer stops any VM still running on the node. When a node is cordoned, it waits up to 1 minute by default for its VMs to stop. If VMs are still running after that, that node’s upgrade fails, and the node is uncordoned again because nothing was installed on it. The run fails too: nodes already upgrading finish, nodes that haven’t started are skipped, and the cluster is left partly upgraded until you start a new run. With --force-macos, the node still waits for the idle timeout, then kills its VMs without a guest shutdown, and anything unsaved in those VMs is lost.
To plan around running VMs:
  • Run --dry-run first. It lists each node’s macOS and how many VMs it runs, and changes nothing. The dry run gives up after 5 minutes.
  • Delete or finish the VMs on those nodes before you start, or give them longer with --macos-idle-timeout, up to 1h.
  • Set --macos-idle-timeout 0 to fail the run before anything is cordoned if any node it would upgrade still runs VMs. A VM that starts after that check makes its node fail at its turn, with no wait.
  • To kill VMs without waiting, combine --force-macos with --macos-idle-timeout 0.
If a node’s macOS upgrade fails after the install may have started, the node stays cordoned so it can be investigated. Contact MacStadium support. A cordon that an administrator placed is never lifted by a run. To upgrade Orka without changing macOS on a MacStadium-hosted cluster, schedule a maintenance window with MacStadium support. Use the current orka CLI to start runs to these releases. orka3 and older orka CLIs can’t set --macos-idle-timeout or --force-macos, so their runs use the defaults: each node waits 1 minute for its VMs to stop, then fails if any are still running. If the cluster’s Upgrade Service is older than these options, --skip-component and --dry-run fail without creating a run, but --force-macos and --macos-idle-timeout are ignored without an error, so update Upgrade Service first.

Skipping node components

--skip-component leaves a node component as it is on every node for that run. You can skip android-sdk and avd-relay, and repeat the flag to skip both. Skipping never removes what’s already installed.
Android emulators fail to start on nodes whose Android SDK is older than the target release requires, or that don’t have the AVD relay it requires. To install them later, run the upgrade again without --skip-component.

Checking upgrades

orka upgrade versions

Show the cluster’s current Orka release and any active upgrade run. Until a cluster completes its first successful run, the current version shows as unknown. It also shows whether macOS upgrades are available on the cluster, and each release you can upgrade to with the macOS it installs. With -o json, it includes the reason when macOS upgrades aren’t available. Syntax:
Options:
Examples:

orka upgrade status

Show the step list and per-node counts of the latest upgrade run, or of the run you name. Syntax:
Options:
Examples:

orka upgrade history

List retained upgrade runs, newest first, with each run’s target, macOS target, source version, phase, duration, and age. Upgrade Service keeps the 10 most recent completed runs, so export any older ones you need for your records. Syntax:
Options:
Examples:

Inspecting Upgrade Service

The orka upgrade service commands always default to the orka-default namespace. They ignore the ORKA_DEFAULT_NAMESPACE environment variable and the kubeconfig context. See Namespace management.

orka upgrade service status

Show Upgrade Service’s operator version and status. Syntax:
Options:
Examples:

orka upgrade service agents

List the per-node upgrade agents with each agent’s installed version, status, and lease age. Unhealthy agents (MISSING or STALE) are listed first. Syntax:
Options:
Examples: