mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 08:30:05 +01:00
feat(examples/nginx-deployment): minor refactor, fixes and e2e test
This commit is contained in:
parent
eac2d78667
commit
fc9abaa519
4 changed files with 54 additions and 14 deletions
|
|
@ -5,10 +5,10 @@ image
|
|||
|
||||
## Usage
|
||||
|
||||
### Building and applying kubernetes yaml file
|
||||
### Building and applying kubernetes configuration
|
||||
|
||||
```
|
||||
nix-instantiate --eval --strict --json -A listObject | kubectl apply -f -
|
||||
nix-instantiate --eval --strict --json -A result | kubectl apply -f -
|
||||
```
|
||||
|
||||
### Building and pushing docker images
|
||||
|
|
@ -16,3 +16,13 @@ nix-instantiate --eval --strict --json -A listObject | kubectl apply -f -
|
|||
```
|
||||
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 '.'
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue