> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Orka Anywhere on-prem installer variables

> Where to set each Orka Anywhere on-prem installer variable, which ones you can override, and when tolerations, node selectors, and node IPs are required.

This page covers the variables for the on-prem installer image, `ghcr.io/macstadium/orka-ansible-onprem`. For the install steps, see [Orka Anywhere on-prem: getting started](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/orka-on-prem-getting-started.md).

## Where each value takes effect

You give the installer values in four places: `cluster.yml`, `nodes.yml`, the `hosts` inventory file, and `-e` on the command line. They don't all have the same weight, because your files sit next to the installer's own settings files:

* **`cluster.yml`** is mounted next to the installer's `group_vars/all/main.yml`, and the installer's `main.yml` wins. A variable that the installer sets in `main.yml` is ignored in `cluster.yml`. To change one, pass it with `-e` when you run the playbook.
* **`nodes.yml`** is mounted as `group_vars/arm-nodes/nodes.yml`. It wins over both installer files for the Mac nodes.
* **`hosts`** sets values for one Mac node, and overrides `nodes.yml` for that node. Put a value here when it differs between nodes.
* **`-e`** on the `ansible-playbook` command line overrides everything.

For how this plays out during upgrades, see [Override installer settings](https://docs.macstadium.com/orka/orka-upgrades-and-release-notes/upgrading-orka-anywhere.md#override-installer-settings).

## Cluster variables

Set these in `cluster.yml`. The installer doesn't set them in its `main.yml`, so your values take effect.

The following table lists the cluster variables.

| Variable | Default | Description |
| - | - | - |
| `k8s_api_address` | None (required) | The address of your Kubernetes API, starting with `https://`. |
| `kube_oidc_client_id` | None (required) | Provided by MacStadium. |
| `orka_engine_license_key` | None (required) | Your Orka license key. See [Managing your Orka license](https://docs.macstadium.com/orka/orka-engine/managing-your-orka-license.md). |
| `configure_orka_tolerations` | Not set | Tolerations added to the Orka services. See [Tolerations and node selectors](#tolerations-and-node-selectors). |
| `orka_node_selector` | Not set | A node selector added to the Orka services. See [Tolerations and node selectors](#tolerations-and-node-selectors). |
| `vm_network_mode` | `nat` | `nat` or `bridge`. See [Network mode](#network-mode). |
| `configure_cert_manager` | `true` | Installs cert-manager. Set it to `false` if your cluster already runs cert-manager. |
| `configure_orka_vm_network_block_list` | Empty | CIDRs that VMs can't reach. |
| `configure_orka_vm_network_allow_list` | Empty | CIDRs that VMs can always reach. The allow list takes precedence over the block list, `vm_internet_isolation`, and `vm_network_isolation`. |
| `create_osx_kubeconfig_server_url` | Read from your kubeconfig | The Kubernetes API address the Mac nodes use. Set it if the Macs reach the API at a different address than your kubeconfig does. |

## Mac node variables

Set these in `nodes.yml` when the value is the same on every Mac node, or next to the node's IP address in `hosts` when it differs.

The following table lists the Mac node variables.

| Variable | Default | Description |
| - | - | - |
| `ansible_user` | None (required) | The admin user on the Mac nodes. |
| `host_password` | None (required) | That user's password. |
| `osx_node_kubelet_node_ip` | Not set | The IP address the node reports to Kubernetes. Required on most on-prem Macs. See [Node IP address](#node-ip-address). |
| `osx_node_hostname` | `<MODEL>-arm-<LAST_IP_OCTET>`, for example `mini-arm-30` for a Mac mini at `10.221.188.30` | The node's name in Orka. The installer also sets the Mac's hostname to this value, and restarts the Mac if it changes. Set it if your `hosts` file uses DNS names instead of IP addresses. |
| `osx_node_vm_network_interface` | Not set | The host interface for bridged VMs. Required in bridge mode, and must not be set in NAT mode. |
| `osx_node_orka_engine_version` | The installer's pin | Pins the Orka Engine build. Set it only if MacStadium gives you a build. |
| `osx_node_orka_vk_version` | The installer's pin | Pins the Virtual Kubelet build. Set it only if MacStadium gives you a build. |

## Installer settings you can only change with -e

The installer sets these in its own `group_vars/all/main.yml`, so a value in `cluster.yml` has no effect. Pass a new value with `-e`. Apart from `cluster_admin_group`, only change one if MacStadium asks you to.

The following table lists the installer settings that customers ask about most.

| Variable | Default | Description |
| - | - | - |
| `cluster_admin_group` | `orka:cluster-admins` | The group whose members are Orka cluster admins, as Kubernetes sees it. Groups from your identity provider carry the `oidc:` prefix set by `oidc-groups-prefix`, so an identity provider group named `corp-admins` is `oidc:corp-admins`. |
| `vm_scheduler_name` | `default-scheduler` | The scheduler for VMs that don't name one. See [Set up the most-allocated scheduler on a self-managed control plane](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/most-allocated-scheduler-self-managed.md). |
| `vm_internet_isolation` | `false` | When `true`, VMs can't reach the internet. See [VM internet isolation](https://docs.macstadium.com/orka/orka-resources/cluster-configurations.md#vm-internet-isolation). |
| `vm_network_isolation` | `false` | When `true`, VMs can't reach private addresses (`10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16`). That includes other VMs, the cluster, and your internal network. See [VM network isolation](https://docs.macstadium.com/orka/orka-resources/cluster-configurations.md#vm-network-isolation). |
| `force_remove_webhooks` | `false` | Removes Orka's admission webhooks at the start of `site.yml`. The same run re-creates them at the end. |
| `orka_apiserver_resources`, `orka_operator_resources`, `orka_webhooks_resources`, `orka_frontend_resources` | Empty | Resource requests and limits for each Orka service. Empty means no requests or limits. |

For example, to use a different admin group:

```bash theme={null}
ansible-playbook site.yml -e cluster_admin_group=<GROUP_NAME>
```

To pass a map, such as resource requests, use JSON:

```bash theme={null}
ansible-playbook site.yml -e '{"orka_apiserver_resources": {"requests": {"cpu": "100m", "memory": "192Mi"}}}'
```

Pass the same `-e` values on every later playbook run, including upgrade runs, except `force_remove_webhooks`, which is for a single run. Values passed with `-e` aren't saved anywhere, so a run without them goes back to the installer's defaults.

## Tolerations and node selectors

By default, the Orka services (the API server, operator, webhooks, web UI, and, if you run `backup.yml`, the backup job) have no tolerations and no node selector. Kubernetes can schedule them on any Linux node that has no taints. They never land on Mac nodes, because every Mac node has the `orka.macstadium.com/apple-silicon:NoSchedule` taint.

Whether you need to set them depends on your Linux nodes:

* **You have Linux worker nodes without taints:** you don't need either variable. The Orka services run on those workers.
* **Your only Linux nodes are control plane nodes:** set `configure_orka_tolerations`. Control plane nodes set up with kubeadm have the `node-role.kubernetes.io/control-plane:NoSchedule` taint, so without a matching toleration the Orka services stay `Pending`.
* **You want the Orka services on the control plane nodes even though you have workers:** set both variables. The toleration lets the services run on those nodes, and the node selector keeps them there.

The following `cluster.yml` example runs the Orka services on the control plane nodes:

```yaml theme={null}
configure_orka_tolerations:
  - key: node-role.kubernetes.io/control-plane
    effect: NoSchedule
    operator: Exists

orka_node_selector: |
  node-role.kubernetes.io/control-plane: ""
```

Only set `orka_node_selector` together with a matching toleration. A node selector that points at tainted nodes, with no toleration for the taint, leaves the services `Pending`.

The installer is strict about the format:

* `orka_node_selector` accepts a single `key: value` label. A second label breaks the generated manifests.
* Each entry in `configure_orka_tolerations` needs `key`, `effect`, and `operator`, and can add `value`. An entry without all three fails the run.

The example selector matches nodes where the `node-role.kubernetes.io/control-plane` label has an empty value, which is what kubeadm sets. Check the label on your nodes with `kubectl get nodes --show-labels` and match its value.

Two components don't use these variables:

* **cert-manager** always tolerates the control plane taint. It uses `orka_node_selector` if you set one.
* **The Orka Upgrade Service** runs on nodes labeled `node-role.kubernetes.io/control-plane` by default, with tolerations for that taint. If none of your nodes have that label with an empty value, the Upgrade Service stays `Pending`. Pass a selector that matches your nodes with `-e`, for example `-e '{"upgrade_service_operator_node_selector": {"node-role.kubernetes.io/control-plane": "true"}}'`. On k3s and RKE2, the control plane label has the value `true`.

## Node IP address

Each Mac node reports an IP address to Kubernetes as its internal IP. If `osx_node_kubelet_node_ip` isn't set, the Virtual Kubelet uses the address of the node's `vlan0` interface, which MacStadium sets up on the Macs it hosts. Macs you set up yourself usually don't have one.

Without `osx_node_kubelet_node_ip`, the Virtual Kubelet fails to start on a Mac with no usable `vlan0` address:

* With no `vlan0` interface, the error is `cannot get interface "vlan0"`.
* With a `vlan0` interface that has no IPv4 address, the error is `no unicast address assigned to interface "vlan0"`. The error suggests a missing VLAN, but you don't need to create one. Set `osx_node_kubelet_node_ip` to the Mac's IP address on the network your control plane uses to reach it.

Set it per node in `hosts`:

```
[arm-nodes]
10.221.188.30 osx_node_hostname=mini-1 osx_node_kubelet_node_ip=10.221.188.30
10.221.188.31 osx_node_hostname=mini-2 osx_node_kubelet_node_ip=10.221.188.31
```

After you change it, run `configure-arm.yml` again, so the node's Virtual Kubelet picks up the new value.

## Network mode

`vm_network_mode` and `osx_node_vm_network_interface` have to agree, or `configure-arm.yml` stops with an error. `site.yml` runs the same check only when you pass the `hosts` inventory with `-i`.

* **NAT mode** (the default): don't set `osx_node_vm_network_interface`. If it's set, the run fails with `Do not provide an interface for NAT mode`.
* **Bridge mode:** set `osx_node_vm_network_interface` for every Mac node. If it's missing, the run fails with `Bridge mode must have an interface defined`. In bridge mode, `vm_internet_isolation`, `vm_network_isolation`, `configure_orka_vm_network_block_list`, and `configure_orka_vm_network_allow_list` have no effect.

For bridge mode setup, see [Using bridge networking with Orka](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/using-bridge-networking-with-orka-350.md).

## Playbook tags

You can run part of a playbook with `--tags`. Only do this when MacStadium asks you to, because a partial run skips every role without that tag.

The following table lists the tags you're most likely to be asked to use.

| Playbook | Tag | Runs |
| - | - | - |
| `site.yml` | `orka` | cert-manager, the Orka services and their permissions |
| `site.yml` | `orka-webhooks` | Orka's admission webhooks |
| `site.yml` | `rbac` | User roles and role bindings |
| `site.yml` | `orka-rbac` | Permissions for the Orka services |
| `site.yml` | `default-namespaces` | The default Orka namespaces |
| `configure-arm.yml` | `install-python` | Python on the Mac nodes |
| `configure-arm.yml` | `create-osx-kubeconfig` | The kubeconfig the Virtual Kubelet uses on each node |

## After a Kubernetes teardown and rebuild

If you tear down and rebuild the Kubernetes control plane, `configure-arm.yml` writes the new cluster's kubeconfig to each Mac node, but the Virtual Kubelet and the Upgrade Service Agent keep running with the old cluster's credentials. The playbook finishes with no failed tasks, and the nodes never appear in the new cluster.

After the run, restart the Virtual Kubelet and the Upgrade Service Agent on each Mac node so they pick up the new kubeconfigs:

```bash theme={null}
sudo launchctl kickstart -k system/orka.virtual.kubeletd
sudo launchctl kickstart -k system/com.macstadium.orka.upgrade-service.agent
```

Then check that the nodes show up with `orka node list`.


## Related topics

- [Orka On-Prem architecture and networking overview](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/orka-on-prem-getting-started.md)
- [Orka Anywhere On-Prem: Troubleshooting VM Deployments](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/orka-on-prem-troubleshooting.md)
- [Upgrade a self-managed Orka Anywhere cluster](https://docs.macstadium.com/orka/orka-upgrades-and-release-notes/upgrading-orka-anywhere.md)
- [Using Bridge Networking with Orka 3.5.0](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/using-bridge-networking-with-orka-350.md)
- [Set up the most-allocated scheduler on a self-managed control plane](https://docs.macstadium.com/orka/orka-on-aws-and-on-prem/most-allocated-scheduler-self-managed.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.