Zrepl, K3s and a Stratum 0 Clock

· mngugi.dev

I am currently investigating a few things

  • Zrepl for zfs snapshots and backups
  • Diskless setup for nixpi and nixbox
  • K3s. I am comfortable with docker swarm but I really want to find out the hype with k8s
  • Better time management. I really want to have a reliable stratum 0 clock on the network. I have no particular reason for this other than sheer fun. Can also add it to the ntp project if it’s acceptable.

Zrepl

I have checked the basic documentation and will proceed with the recommended TLS config. My reasons for moving from my trusty syncoid setup is better speeds. SSH is said to be slow and over my network I’ve noticed that less than half the possible disk speed is left on the table during transfers. I’ve added some mellanox cards with 10G modules to see how far I can push it.

Diskless Setup

I don’t have a lot hardware options around these parts. 10yr old hardware is still easily in the $300 range. Drives are equally expensive. I would like to invest on a solid NAS solution and push those as far as can. This makes bargaining on sales a little easier if I can get them to throw out the drive.

I have found a seller with some optane drives that I plan to use as SLOG (mirrored) and some cheap SSDs for L2ARC.

Still figuring out the software side of things. Current candidate setup is to use dnsmasq and ZFS zvols. I have looked into ISCSE but I just cannot figure it out on nixos. Any help here would be great.

K3S

I don’t quite understand the appeal and will be looking into it to finally understand. As my nodes increase in number I will probably need something like this for high availability. My current favorite is docker swarm.

NTP Server

I got gifted a Ublox 7 USB receiver. I thought the best way to use this was to incorporate into a drone I’ve building but it wasn’t quite that good over there. Next best use case is as a reference clock. It is currently connected to nixer and used when network services are down. With no PPS it’s not the best but it does get the job done.

I have some meshtastic nodes. I plan to strap one on a water tower around here and use a local node strap over serial to get NMEA pkts to improve it. Will update here when I get some progress.