kubenix/README.md
2022-08-14 21:56:30 -04:00

1.7 KiB

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.