kubenix/README.md
2022-08-13 00:09:36 -04:00

1.2 KiB

kubenix

Kubernetes resource management with Nix

nixos logo in kubernetes blue

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

Usage

Apply all resources with

nix run github:hall/kubenix . -- apply

HINT: use --help for 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.