kubenix/docs/examples/nginx-deployment/README.md

22 lines
481 B
Markdown
Raw Normal View History

# nginx deployment
2019-03-07 18:03:51 +01:00
A simple example creating an nginx docker image and deployment.
2019-03-07 18:03:51 +01:00
## Usage
### Building and applying kubernetes configuration
2019-03-07 18:03:51 +01:00
nix eval -f ./. --json result | kubectl apply -f -
2019-03-07 18:03:51 +01:00
### 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 '.'