Skip to content

Simple web server... that sometimes fails its health check

License

Notifications You must be signed in to change notification settings

technosophos/poetic-injustice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Building

Local build:

  • Use Rust 2018ed or later
  • Run cargo run (or cargo build)
  • ???
  • Profit

Building a Docker image:

  • docker build -t $YOU/poetic-injustice:latest .
  • docker push $YOU/poetic-injustice:latest

About

Simple web server... that sometimes fails its health check

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published