Kubernix is a Container Runtime Interface (CRI) implementation that allows you to orchestrate native NixOS containers with Kubernetes, without depending on any other containerizer technology.
warning: It's just a proof of concept for now! Don't use it for anything serious
- Because we use
nix-shell
magic, there is no need to create a$GOPATH/src/github.com/moretea
directory. - Clone the repository
git clone git@github.com:moretea/kubernix.git
- Enter a
nix-shell.
- Get the dependencies by running
dep ensure
- I've made an easy
build
alias available in thenix-shell
.
- Run the
kubernix
binary. It will open a UNIX socket on /tmp/kubernix.sock. - Use the cri-tools that are made available in the nix-shell to play with kubernix.
The
CRI_RUNTIME_ENDPOINT
environmental variable points to the/tmp/kubernets.sock
UNIX socket, so thecri-tools
can be used without passing any configuration paramaters. - Alternatively, run one (or all) of the tests in the tests directory.
Nope, it doesn't work yet!