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.ymlis mounted next to the installer’sgroup_vars/all/main.yml, and the installer’smain.ymlwins. A variable that the installer sets inmain.ymlis ignored incluster.yml. To change one, pass it with-ewhen you run the playbook.nodes.ymlis mounted asgroup_vars/arm-nodes/nodes.yml. It wins over both installer files for the Mac nodes.hostssets values for one Mac node, and overridesnodes.ymlfor that node. Put a value here when it differs between nodes.-eon theansible-playbookcommand line overrides everything.
Cluster variables
Set these incluster.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 innodes.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 owngroup_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:
-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 runbackup.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 thenode-role.kubernetes.io/control-plane:NoScheduletaint, so without a matching toleration the Orka services stayPending. - 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.
cluster.yml example runs the Orka services on the control plane nodes:
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_selectoraccepts a singlekey: valuelabel. A second label breaks the generated manifests.- Each entry in
configure_orka_tolerationsneedskey,effect, andoperator, and can addvalue. An entry without all three fails the run.
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_selectorif you set one. - The Orka Upgrade Service runs on nodes labeled
node-role.kubernetes.io/control-planeby default, with tolerations for that taint. If none of your nodes have that label with an empty value, the Upgrade Service staysPending. 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 valuetrue.
Node IP address
Each Mac node reports an IP address to Kubernetes as its internal IP. Ifosx_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
vlan0interface, the error iscannot get interface "vlan0". - With a
vlan0interface that has no IPv4 address, the error isno unicast address assigned to interface "vlan0". The error suggests a missing VLAN, but you don’t need to create one. Setosx_node_kubelet_node_ipto the Mac’s IP address on the network your control plane uses to reach it.
hosts:
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 withDo not provide an interface for NAT mode. - Bridge mode: set
osx_node_vm_network_interfacefor every Mac node. If it’s missing, the run fails withBridge mode must have an interface defined. In bridge mode,vm_internet_isolation,vm_network_isolation,configure_orka_vm_network_block_list, andconfigure_orka_vm_network_allow_listhave no effect.
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:
orka node list.
