Demo Manifests and Code Used in DevOps Toolkit Videos
chmod +x dot.nu
./dot.nu setup --provider kind
source .env
Backend with CNPG PostgreSQL
./dot.nu apply cnpg
./dot.nu apply atlas
kcl run kcl/main.k -D db.enabled=true \
| kubectl --namespace a-team apply --filename -
curl " http://silly-demo.127.0.0.1.nip.io"
curl -X POST " http://silly-demo.127.0.0.1.nip.io/video?id=1&title=something"
curl -X POST " http://silly-demo.127.0.0.1.nip.io/video?id=2&title=else"
curl " http://silly-demo.127.0.0.1.nip.io/videos" | jq .
Both frontend and backend with CNPG PostgreSQL
./dot.nu apply cnpg
./dot.nu apply atlas
kcl run kcl/main.k -D db.enabled=true -D frontend.enabled=true \
| kubectl --namespace a-team apply --filename -
kubectl --namespace a-team \
get all,ingresses,secrets,clusters,atlasschemas
curl -X POST " http://silly-demo.127.0.0.1.nip.io/video?id=1&title=something"
curl -X POST " http://silly-demo.127.0.0.1.nip.io/video?id=2&title=else"
curl " http://silly-demo.127.0.0.1.nip.io/videos" | jq .
./dot.nu deploy app
source .env
./dot.nu run integration_tests
./dot.nu destroy app
./dot.nu destroy $PROVIDER
exit