Statefile
Statefile are a way to describe the state you want for a specific namespace.
It use yaml form we can sumerize the deployment of our cargo as follow :
Save this file under my-cargo.yml
and apply it using:
nanocl state apply -s ./my-cargo.yml
And test with a simple curl:
curl --header "Host: deploy-example.com" 127.0.0.1
And voila.