Kubernetes management with Nix https://kubenix.org/
Find a file
2022-08-14 21:56:30 -04:00
.github/workflows only x86_64-linux 2022-04-02 14:41:57 -07:00
.vscode set vscode formatter to alejandra, format repo 2022-08-13 18:20:59 -04:00
docs set vscode formatter to alejandra, format repo 2022-08-13 18:20:59 -04:00
jobs collect kube versions into a single file 2022-08-13 21:39:56 -04:00
lib statix fix 2022-04-02 13:43:57 -07:00
modules collect kube versions into a single file 2022-08-13 21:39:56 -04:00
pkgs init cli, add start of target docs 2022-08-12 09:44:00 -04:00
tests enable some tests 2022-04-02 16:12:17 -07:00
.envrc remove flake-compat and devshell inputs 2022-08-13 00:09:36 -04:00
.gitignore cleanup some misc files 2022-08-12 09:44:26 -04:00
CONTRIBUTING.md collect kube versions into a single file 2022-08-13 21:39:56 -04:00
default.nix add minimal working example to readme 2022-08-14 21:56:30 -04:00
flake.lock add minimal working example to readme 2022-08-14 21:56:30 -04:00
flake.nix add minimal working example to readme 2022-08-14 21:56:30 -04:00
LICENSE feat: add license 2019-03-07 23:30:20 +01:00
README.md add minimal working example to readme 2022-08-14 21:56:30 -04:00
treefmt.toml add treefmt 2022-04-02 15:40:44 -07:00
versions.nix collect kube versions into a single file 2022-08-13 21:39:56 -04:00

kubenix

Kubernetes resource management with Nix

nixos logo in kubernetes blue

WARN: this is a work in progress, expect breaking changes

Usage

Create a default.nix file:

{ kubenix ? import (builtins.fetchGit {
  url = "https://github.com/hall/kubenix.git";
  rev = "aa734afc9cf7a5146a7a9d93fd534e81572c8122";
}) }:
(kubenix.evalModules.x86_64-linux {
  module = {kubenix, ...}: {
    imports = with kubenix.modules; [k8s];
    kubernetes.resources.pods.test.spec.containers.nginx.image = "nginx";
  };
}).config.kubernetes.result

Then execute nix-build to write JSON manifests to ./result.

Attribution

This project was forked from https://github.com/GTrunSec/kubenix which was forked from https://github.com/xtruder/kubenix.

Logo is a mishmash of the Kubernetes wheel and the NixOs snowflake.