feat(deploy): add PXE controller role for multi-node netboot#114
Merged
Conversation
Add a pxe_controller Ansible role and pb-pxe-controller.yml playbook that turn one service machine into a PXE controller (dnsmasq Proxy-DHCP + TFTP, debootstrap NFS rootfs, BIOS/UEFI boot menus, Apache /k3s/ endpoint) so diskless agents can netboot and auto-join a K3s cluster. Site-specific networking values (interface, subnet, DNS, controller IP, k3s server IPs) are empty by default and asserted at run time, and the agent k3s version is pinned via pxe_k3s_version to match the server. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pxe_controllerAnsible role andpb-pxe-controller.ymlplaybook that turn one service machine into a PXE controller so diskless agents can netboot and auto-join a K3s cluster.dnsmasq(Proxy-DHCP + TFTP), adebootstrapNFS rootfs under/srv/nfs/rootfs, BIOS/UEFI boot menus in/srv/tftp, and an Apache/k3s/endpoint for join credentials.k3s-auto-join.service; local-disk persistence keeps the K3s node identity across reboots.Design notes
pxe_network_interface,pxe_subnet,pxe_dns_servers,pxe_controller_ip,pxe_k3s_server_ips) are empty by default and asserted at run time, so no site IPs ship in the repo.pxe_k3s_version(defaults tov1.32.3+k3s1) to match the server.pxe_initramfs_modulesif needed).Docs
docsbranch (docs: add 3 Node Mini-Cluster Example (PXE netboot) guide #113).Test plan
pb-pxe-controller.ymlagainst a real service machine and netboot at least one agent.Made with Cursor