- REDIS_PASSWORD - Used to set password of redis instance and to provide connection info for webserver
- REDIS_PORT - Used to set customize redis instance port and to provide connection info for webserver
- REDIS_HOST - Used to provide connection info for webserver
Optional ENV variables:
- WEB_SERVER_VERSION - This value will be returned when calling
/versionendpoint on the webserver
To start dev environment run:
docker compose upThe webserver will be available on http://localhost:3000
You need to have k8s cluster locally or a minikube installed.
You also need to install k8s ingress nginx.
If you have minikube, just run:
minikube addons enable ingressOtherwise instructions to install ingress can be found here, just search for your environment.
And finally prepare the required redis password secret, by running:
./create-k8s-secret.shTo start dev environment run:
skaffold devWhen terminating skaffold will clean everything up except redis-secret you created manually
Move into ./helm/main and run:
helm dependency buildThen to deploy the app run:
helm install [APP_NAME] .Webserver has 4 endpoints:
/- Prints and increments the timer whenever it is called (response type: HTML)/version- Returns version set via WEB_SERVER_VERSION env variable/healthz|/readyz|/livez- Returns HTTP status code 200 without content/metrics- Returns metrics histogram data ready to be scraped by prometheus