3 ms·
> * declarative define your infrastructure > [...] > * has a huge amount of pre-packaged software available (helm charts) > * and most importantly: allows yo
by matrss 3y ago
> * declarative define your infrastructure
> [...]
> * has a huge amount of pre-packaged software available (helm charts)
> * and most importantly: allows you to stand up mostly the same infrastructure in the cloud, on your own servers (k3s), and locally (KIND), and thus doesn't tie you into a specific cloud provider
NixOS. I have no clue about kubernetes, but I think NixOS even goes much deeper in these points (e.g. kubernetes is at the "application layer" and doesn't concern itself with declaratively managing the OS underneath, if I understand right). The other points seem much more situational, and if needed kubernetes might well be worth it. For something that could be a single server running a handful of services, NixOS is amazing.
- the_duke 3y agoI use NixOS, both on servers and on my machines, but it solves a completely orthogonal problem. Kubernetes manages a cluster, NixOS manages a single machine.
- matrss 3y agoI wouldn't say completely orthogonal. E.g. the points I've cited are overlap between the two, and ultimately both are meant to host some kind of services. But yes NixOS by itself manages a single machine (although combined with terraform it can become very convenient to also manage a fleet of NixOS machines). Kubernetes manages services on a cluster, but given how powerful a single machine can be I do think that many of those clusters could also just be one beefy server (and maybe a second one with some fail over mechanism, if needed). If the cluster is indeed necessary though, I think NixOS can be a great base to stand up a Kubernetes cluster on top of.
- pxc 3y agoThere are lots of native NixOS tools for managing whole clusters (NixOps, Disnix, Colmena, deploy-rs, Morph, krops, Bento, ...). Lots of people deploy whole fleets of NixOS servers or clusters for specific applications without resorting to Kubernetes. (Kube integrations are also popular, though.) Some of those solutions are very old, too. Disnix has been around for a long time, probably since before you ever heard of NixOS.