[HN Gopher] A 'small' vanilla Kubernetes install on NixOS
       ___________________________________________________________________
        
       A 'small' vanilla Kubernetes install on NixOS
        
       Author : todsacerdoti
       Score  : 24 points
       Date   : 2025-11-18 11:01 UTC (11 hours ago)
        
 (HTM) web link (stephank.nl)
 (TXT) w3m dump (stephank.nl)
        
       | darkwater wrote:
       | I run K3s on NixOS as the central piece of my homelab and it was
       | actually even too much easy to setup (although now that I think
       | about it there was some gotcha I had to manually tweak in K3s
       | config). This "Kubernetes on NixOS the hard way" seems very
       | interesting and I will have a look at it via the QEMU image at
       | some point. Thanks for sharing!
        
         | anttiharju wrote:
         | Any resources you'd recommend for the k3s+NixOS setup? Been
         | eyeing the same
        
           | darkwater wrote:
           | I followed the official NixOS documentation [1] which is...
           | scarce, to say the least. But it also basically worked just
           | like that.
           | 
           | [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/applica
           | tio...
        
         | clvx wrote:
         | resetting k3s in NixOS is not that straightforward and requires
         | manual input. It cannot be fully automated as removing the
         | statement from your config afaik unless this has changed
         | recently.
        
           | darkwater wrote:
           | Now I don't recall which issue I had, I think it was
           | something related to CoreDNS config or passing through the
           | /etc/hosts of the NixOS node, but I do remember having to
           | touch the K3s YAML directly, and maybe having issues also
           | persisting it. It's actually the only thing I fear would
           | break if I had to reinstall NixOS from scratch...
        
       | junkaccount wrote:
       | why nixos gets to first page?
        
         | CuriouslyC wrote:
         | Nix is crazy powerful, it can have all my upvotes.
        
         | chickensong wrote:
         | Because it's a fundamental shift in design away from most other
         | linux distributions, which is exciting and and perhaps a breath
         | of fresh air for longtime linux users.
        
       ___________________________________________________________________
       (page generated 2025-11-18 23:00 UTC)