3 ms·
I run my homelab on NUCs as well but no hypervisor. Everything I run is in Docker containers. So the NUCs have CentOS installed and then just containers across
by regnerba 6y ago
I run my homelab on NUCs as well but no hypervisor. Everything I run is in Docker containers. So the NUCs have CentOS installed and then just containers across the Swarm cluster.
Storage is an NFS mount from my Synology NAS.
The only reason I would really care to have a hypervisor is because then I can do more from Terraform.
I use Terraform to configure my DNS, my Ubiquiti gear, and the Swarm cluster but that leaves a gap where I need to do something to manage the actual CentOS machine. There isn't much to manage (users, SSHd config, SSH keys, packages such as vim, docker, and htop, and then NFS mounts) but the less I have to manage myself the better. Just don't think it's worth adding a whole hypervisor just to pull possibly some of the networking into Terraform.
Anyways, NUCs + Docker Swarm = great win.
- luzer7 6y agoThat's exactly what I want to do. Do you have any guides you used? I'm having a little trouble with nfs and docker permissions (guid/uid I think) trickling down to the nfs share in my Synology.
- regnerba 6y agoWith regards to NFS permissions, I set my Synology up as so: * Client: 192.168.0.8/29 (whatever the smallest subnet is I can use that includes my NUC) * Privilege: Read/Write * Squash: No mapping * Asynchronous: Yes * Non-privileged port: Denied * Cross-mount: Denied This is fairly out of date (I keep my own stuff in a private monorepo, this was a snapshot I posted for a friend), but here is the basics of a script to setup my NUC: https://github.com/regner/homelab-stacks/blob/master/scripts/init_node_common.sh https://github.com/regner/homelab-stacks/blob/master/scripts... Of note, the "Adding NFS share to fstab" part doesn't actually do that...