This is a simple web server with a chaotic twist. In normal operation, it prints out a line of poetry by a given poet from a given poem (/
). But the health check (/healthz
) randomly fails (approx. 1% of the time).
I use this for simple chaos testing in a Kubernetes cluster, including this image in testing configurations for different resource types.
- POEM: Title of a poem
- POET: Name of a poet
- QUOTE: Line of poetry
Local build:
- Use Rust 2018ed or later
- Run
cargo run
(orcargo build
) - ???
- Profit
Building a Docker image:
docker build -t $YOU/poetic-injustice:latest .
docker push $YOU/poetic-injustice:latest