I was thinking recently about the possibility of a NixOps style tool that would deploy into a Kubernetes cluster. The idea would be that services be build and pushed as containers, and then K8s deployments created for pods, as described in a Nix expression.
What I was wondering is if there’s prior art around this. I know I’ve seen a few articles about building Docker images with Nix, but I can’t recall (and searching Discourse doesn’t reveal) discussion about using Kubernetes with it.
I wanted to use this project but I had enough trouble trying to deploy a 3 node kubernetes cluster using NixOS and nixops (kept on running into errors). Do you have any advice on deploying a kubernetes cluster using the nixpkgs service?