Hands-on task
A /version endpoint after the rollout
After a rollout, monitoring checks which version is actually answering. Add a service endpoint to nginx (the site on port 80, config /etc/nginx/sites-enabled/default): GET /version answers with status 200 and the body 2.4.0 straight from the config, without a file on disk. It must fire only on the exact path /version — /version-old, for example, must still return 404.
- nginx
- location =
- return
- service endpoint
- nginx -s reload