Get started with podule
This guide renders a Kubernetes manifest for a small cluster from one Nix file. You finish with the manifest on disk, ready to apply.
You need Nix with flakes on x86_64-linux.
Clone the example cluster
Section titled “Clone the example cluster”The example runs Metabase against a self-managed Postgres and publishes it with Traefik, cert-manager, and ExternalDNS.
Run:
git clone https://gitlab.techtailors.net/podule/demo-clustercd demo-clusterRender the manifest
Section titled “Render the manifest”Run:
nix build .#manifestNix evaluates the cluster and writes the rendered objects to result/. The first build compiles easykubenix; later builds reuse it.
Confirm the output
Section titled “Confirm the output”$ ls resultexternal-dns manifest.yaml postgresqlresult/manifest.yaml holds every Kubernetes object. Each namespace that declares secrets also has a secretspec.toml.
Next steps
Section titled “Next steps”cluster.nix sets the domain, providers, and instances. Edit it for your cluster, then open the reference in the sidebar for every contract and module. The demo-cluster README covers applying the manifest.