Open loveshack opened 5 years ago
Definitely something worth exploring!
I wonder how much "stateless" the nodes can be, though: each one would still need its own copy of the network config, and what else?
I wonder how much "stateless" the nodes can be, though: each one would still need its own copy of the network config, and what else?
That depends on the distribution somewhat. For EL7, I think you can look in /etc/rwtab{,.d} and /run/initramfs/rwtab, plus systemd (ugh!) rhel-readonly service for what you might need in the ramfs. I assume it will be similar for Debian 9, but that doesn't have the systemd service. You don't need anything node-specific if you have dhcp and homogeneous nodes.
I wonder if it's a reasonable feature request to be able to use stateless nodes, with root provisioned on NFS, a network block device, or perhaps memory. That would finesse at least speed issues with ansible provisioning, and is generally the best way to manage at least less ephemeral clusters in my experience. I assume you can't PXE boot a suitable initramfs with most providers, so you'd presumably need to boot a minimal stateful system and trigger a pivot_root into the appropriate filesystem from that.