kubenix/examples/nginx-deployment
2020-01-14 19:13:44 +00:00
..
default.nix fix tests and examples 2020-01-14 19:13:44 +00:00
image.nix fix: minor fixes 2019-10-06 21:44:00 +02:00
module.nix fix(tests): new resource naming 2019-09-27 18:29:00 +02:00
README.md feat(examples/nginx-deployment): use nix eval for applying configuration 2019-03-12 21:08:54 +01:00
test.nix fix tests and examples 2020-01-14 19:13:44 +00:00

Example: kubernetes nginx deployment

A simple example creating kubernetes nginx deployment and associated docker image

Usage

Building and applying kubernetes configuration

nix eval -f ./. --json 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-script
cat result | jq '.'