mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
docs reset
This commit is contained in:
parent
43371dba54
commit
b874fce232
10 changed files with 225 additions and 28 deletions
28
docs/examples/nginx-deployment/README.md
Normal file
28
docs/examples/nginx-deployment/README.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# 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 '.'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue