Sign inSign up

technosophos/poetic-justice

By technosophos

Updated over 7 years ago

Simple web server... that sometimes fails its health check (on purpose)

Image
0

311

technosophos/poetic-justice repository overview

Poetic Injustice

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.

Environment Variables:

  • POEM: Title of a poem
  • POET: Name of a poet
  • QUOTE: Line of poetry

Versions

Poetic Injustice is intentionally latest-only. The only changes that will be made are minor bug fixes, and possibly a control to allow users to specify the frequency with which it fails.

Source

This image is tiny because it was written in Rust and built on Alpine. Weeeeee!

To hack one the code, head on over to https://github.com/technosophos/poetic-injustice

Tag summary

Content type

Image

Digest

Size

5.2 MB

Last updated

over 7 years ago

docker pull technosophos/poetic-justice