kubenix/examples/nginx-deployment
Jaka Hudoklin 6183fcc190
Refactor:
- Support for module features
- Remove kubenix.module and rather use explicit modules
- Make tests framework independent of k8s module
- Remove metacontroller submodule, which will go to kubenix-modules
- Improved submodule propagation and passthru
- Added additional test for k8s-submodule
2019-03-12 20:48:19 +01:00
..
default.nix feat(examples/nginx-deployment): minor refactor, fixes and e2e test 2019-03-07 23:24:28 +01:00
image.nix feat(examples): add nginx deployment 2019-03-07 18:05:00 +01:00
module.nix Refactor: 2019-03-12 20:48:19 +01:00
README.md feat(examples/nginx-deployment): minor refactor, fixes and e2e test 2019-03-07 23:24:28 +01:00
test.nix feat(examples/nginx-deployment): minor refactor, fixes and e2e test 2019-03-07 23:24:28 +01:00

Example: kubernetes nginx deployment

A simple example creating kubernetes nginx deployment and associated docker image

Usage

Building and applying kubernetes configuration

nix-instantiate --eval --strict  --json  -A result | kubectl apply -f -

Building and pushing docker images

nix run -f ./. pushDockerImages -c copy-docker-images

Running tests

Test will spawn vm with kubernetes and run test script, which checks if everyting works as expected.

nix build -f ./. test
cat result | jq '.'