kubenix/docs/examples/nginx-deployment
2022-08-13 18:20:59 -04:00
..
default.nix docs reset 2022-08-11 23:07:20 -04:00
image.nix docs reset 2022-08-11 23:07:20 -04:00
module.nix set vscode formatter to alejandra, format repo 2022-08-13 18:20:59 -04:00
README.md set vscode formatter to alejandra, format repo 2022-08-13 18:20:59 -04:00
test.nix docs reset 2022-08-11 23:07:20 -04:00

nginx deployment

A simple example creating an nginx docker image and deployment.

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 everything works as expected.

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