Skip to main content
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.

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.

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.

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.

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. For example, to use a different admin group:
To pass a map, such as resource requests, use JSON:
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:
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:
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.

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.

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:
Then check that the nodes show up with orka node list.