Site file reference
Every site-file field, its default, and every rule argoctl site validate checks.
Fields
| Field | Required | Meaning |
|---|---|---|
version | yes | Site file format version. Only 1 exists. |
name | yes | Site name: 1-63 lowercase letters, digits and - (a DNS label). |
networks.oob | yes | The BMC network. cidr; gateway and dns optional (usually absent). |
networks.provisioning | yes | mgmt-to-node network: cidr, optional gateway, optional dns (list). |
networks.frontend | no | Customer-facing network, same fields. Required if any node has a frontend NIC. |
networks.frontend.lb_pool | no | Addresses for Kubernetes LoadBalancer Services: first-last (172.16.2.200-172.16.2.220), a CIDR (172.16.2.192/27, every address in it) or one address. Free addresses on the frontend network that nothing else uses: ask your network team to reserve the range. Without it, LoadBalancer Services stay Pending. See LoadBalancer addresses. |
networks.<net>.routes | no | Extra static routes for nodes on that network: - { to: 192.168.0.0/16, via: 172.16.2.254 }. via must be inside the network; 0.0.0.0/0 is refused (the default route comes from gateway). |
mgmt.provisioning_ip | yes | mgmt's address on the provisioning network. |
mgmt.oob_ip | no | mgmt's address on the BMC network. Needed by preflight; used by Ironic for virtual media when set. |
bmc.username | yes | BMC login shared by all nodes. |
bmc.password_env / bmc.password_file | exactly one | Where the password is: the name of an environment variable on mgmt, or an absolute path to a file holding it. Never the password itself. |
os_image.url | yes | http(s) URL of the disk image to install. |
os_image.checksum | yes | sha256:<64 hex> or sha512:<128 hex>. |
ssh_authorized_keys | no | OpenSSH public keys (ssh-ed25519 AAAA… comment) allowed to log in to every installed node as ubuntu. mgmt's own provisioning key is always added. Private keys are refused (and not echoed). |
kubernetes.control_plane | no | The control-plane node. Default: the first node. The others are workers. |
kubernetes.pod_cidr | no | Pod addresses. Default 10.244.0.0/16. Must not overlap the site's networks, their routes, service_cidr or reserved_cidrs. |
kubernetes.service_cidr | no | ClusterIP Service addresses. Default 10.96.0.0/12. Same rule. |
kubernetes.reserved_cidrs | no | Other networks the nodes or their users reach (VPNs, offices): checked not to overlap the pod and Service ranges. |
nodes[].name | yes | Node name (DNS label), unique. Becomes its hostname. |
nodes[].bmc.address | yes | BMC base URL, http:// or https://, no path (argoctl adds /redfish/v1). |
nodes[].bmc.verify_tls | no | Default true. false accepts self-signed certificates. |
nodes[].bmc.system_id | no | Pin the node's Redfish System (/redfish/v1/Systems/<id> or the bare Id). Without it argoctl uses the BMC's only System, or the one with the node's provisioning MAC. |
nodes[].nics.provisioning | yes | mac and static ip on the provisioning network. |
nodes[].nics.frontend | no | mac and static ip on the frontend network. |
Addresses are IPv4. Each NIC's prefix length and gateway come from its network.
Routing on installed nodes
There is no DHCP anywhere. On every installed node:
- every NIC gets its static IP from the site file;
- there is at most one default route: via the frontend gateway if the node has a frontend NIC and that network has a
gateway, otherwise via the provisioning gateway; - each network's
routesare added on that network's NIC; - DNS servers are the union of the node's networks'
dns.
Which network Kubernetes uses
The frontend network, when the site has one: every node's kubelet address and the API server address are frontend addresses. A site without frontend NICs uses the provisioning network. A site where only some nodes have a frontend NIC is refused by create cluster.
Validation rules
Shape, reported one at a time at file:line:column:
- valid YAML, one document, no duplicate keys;
- unknown fields are rejected everywhere, so a typo never silently does nothing; the message lists the fields allowed there;
- required fields present, values of the right type.
Contents, all reported together at file:line:column, in file order:
versionis 1; site and node names are DNS labels; node names are unique; at least one node;- CIDRs are IPv4 networks without host bits (
172.16.1.5/24→ "write172.16.1.0/24"); the networks don't overlap; - gateways, mgmt addresses, BMC addresses (when given as IPs) and NIC IPs are inside their network's CIDR and are not its network or broadcast address;
- every address is used once: no NIC IP, BMC or mgmt address clashes with another, or with a gateway; BMC host names are unique too;
- MACs are six hex pairs (
3c:ec:ef:10:00:01, either case), unicast, not all-zero, and unique across all nodes; - BMC and image URLs are
http/httpswith a host and no embeddeduser:password@; BMC URLs have no path; - inline passwords are rejected:
bmc.password:is an error with the fix (usepassword_envorpassword_file), and its value is never printed;password_envmust look like a variable name (if it doesn't, it isn't echoed either: it may be a pasted password);password_filemust be absolute; - the image checksum has an algorithm prefix and the right number of hex digits;
- a node with a
frontendNIC needsnetworks.frontend; kubernetes: the control plane is one of the nodes; the pod and Service ranges (defaults included) don't overlap each other, any network, any route destination orreserved_cidrs;lb_pool: only on the frontend network;first-lastwith first ≤ last, a CIDR without host bits, or one address; entirely inside the frontend network and not its network or broadcast address; none of its addresses is a gateway, mgmt or node address in the file; it doesn't overlap the pod or Service range; and the nodes have frontend NICs.
A fuller networks example
networks:
oob:
cidr: 172.16.0.0/24
provisioning:
cidr: 172.16.1.0/24
gateway: 172.16.1.1
dns: [172.16.1.53]
frontend:
cidr: 172.16.2.0/24
gateway: 172.16.2.1
dns: [172.16.1.53, 172.16.2.53]
routes:
- { to: 192.168.0.0/16, via: 172.16.2.254 } # office network through another router
lb_pool: 172.16.2.200-172.16.2.220 # LoadBalancer Service addresses
kubernetes:
control_plane: cp1
pod_cidr: 10.244.0.0/16
service_cidr: 10.96.0.0/12
reserved_cidrs: [10.8.0.0/16] # the VPN your users connect from