Skip to Content

Site file reference

Every site-file field, its default, and every rule argoctl site validate checks.

Fields

FieldRequiredMeaning
versionyesSite file format version. Only 1 exists.
nameyesSite name: 1-63 lowercase letters, digits and - (a DNS label).
networks.oobyesThe BMC network. cidr; gateway and dns optional (usually absent).
networks.provisioningyesmgmt-to-node network: cidr, optional gateway, optional dns (list).
networks.frontendnoCustomer-facing network, same fields. Required if any node has a frontend NIC.
networks.frontend.lb_poolnoAddresses 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>.routesnoExtra 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_ipyesmgmt's address on the provisioning network.
mgmt.oob_ipnomgmt's address on the BMC network. Needed by preflight; used by Ironic for virtual media when set.
bmc.usernameyesBMC login shared by all nodes.
bmc.password_env / bmc.password_fileexactly oneWhere 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.urlyeshttp(s) URL of the disk image to install.
os_image.checksumyessha256:<64 hex> or sha512:<128 hex>.
ssh_authorized_keysnoOpenSSH 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_planenoThe control-plane node. Default: the first node. The others are workers.
kubernetes.pod_cidrnoPod addresses. Default 10.244.0.0/16. Must not overlap the site's networks, their routes, service_cidr or reserved_cidrs.
kubernetes.service_cidrnoClusterIP Service addresses. Default 10.96.0.0/12. Same rule.
kubernetes.reserved_cidrsnoOther networks the nodes or their users reach (VPNs, offices): checked not to overlap the pod and Service ranges.
nodes[].nameyesNode name (DNS label), unique. Becomes its hostname.
nodes[].bmc.addressyesBMC base URL, http:// or https://, no path (argoctl adds /redfish/v1).
nodes[].bmc.verify_tlsnoDefault true. false accepts self-signed certificates.
nodes[].bmc.system_idnoPin 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.provisioningyesmac and static ip on the provisioning network.
nodes[].nics.frontendnomac 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 routes are 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:

  • version is 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 → "write 172.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/https with a host and no embedded user:password@; BMC URLs have no path;
  • inline passwords are rejected: bmc.password: is an error with the fix (use password_env or password_file), and its value is never printed; password_env must look like a variable name (if it doesn't, it isn't echoed either: it may be a pasted password); password_file must be absolute;
  • the image checksum has an algorithm prefix and the right number of hex digits;
  • a node with a frontend NIC needs networks.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 or reserved_cidrs;
  • lb_pool: only on the frontend network; first-last with 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

On this page