kubenix/README.md

53 lines
1.2 KiB
Markdown
Raw Normal View History

2022-08-11 23:07:20 -04:00
# kubenix
2022-08-11 23:07:20 -04:00
Kubernetes resource management with Nix
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
<img style="display: block; margin: 2em auto;" src="./docs/logo.svg" alt="nixos logo in kubernetes blue" width="350"/>
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
> **WARN**: this is a work in progress, expect breaking changes
2022-08-11 23:07:20 -04:00
## Usage
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
See [./docs/examples/](./docs/examples/) for now.
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
<!-- Apply all resources with
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
nix run github:hall/kubenix
2022-08-11 23:07:20 -04:00
> **HINT**: run `nix run github:hall/kubenix -- --help` for more commands
2022-08-11 23:07:20 -04:00
A minimal example flake:
2022-08-11 23:07:20 -04:00
```nix
{
inputs.kubenix = "github:hall/kubenix";
outputs = {self, ...}@inputs: {
# nixosConfigurations.hostname = {
# modules = [ inputs.kubenix.nixosModule ];
# };
kubernetes.cluster.resources.pod.test.spec.containers.nginx.image = "nginx";
}
}
```
2022-08-11 23:07:20 -04:00
A more complete example config:
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
```nix
{
kubernetes = {
context = "default";
resources = {};
helm = {
releases = {};
};
docker = {};
}
}
``` -->
## Attribution
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
This project was forked from https://github.com/GTrunSec/kubenix which was forked from https://github.com/xtruder/kubenix.
2017-11-11 11:52:17 +01:00
2022-08-11 23:07:20 -04:00
Logo is a mishmash of the [Kubernetes wheel](https://github.com/kubernetes/kubernetes/blob/master/logo/logo.svg) and the [NixOs snowflake](https://github.com/NixOS/nixos-artwork/blob/master/logo/white.svg).