mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-11 23:50:06 +01:00
Kubernetes management with Nix
https://kubenix.org/
| .github/workflows | ||
| .vscode | ||
| devshell | ||
| docs | ||
| jobs | ||
| lib | ||
| modules | ||
| pkgs | ||
| tests | ||
| .envrc | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| shell.nix | ||
| treefmt.toml | ||
kubenix
Kubernetes resource management with Nix
WARN: this is a work in progress, expect breaking changes
Usage
Apply all resources with
nix run github:hall/kubenix . -- apply
HINT: run
nix run github:hall/kubenix . -- --helpfor more commands
A minimal example flake:
{
inputs.kubenix = "github:hall/kubenix";
outputs = {self, ...}@inputs: {
nixosConfigurations.hostname = {
modules = [ inputs.kubenix.nixosModule ];
};
kubernetes.resources.pods."app" = {
spec.containers."app" = {
name = "app";
image = "nginx";
};
};
}
}
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.