mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 16:40:05 +01:00
540 B
540 B
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 '.'