Sign inSign up

de13/spaceboy

By de13

Updated about 7 years ago

A simple go app for demoing K8s features by exposing routes on port 8080

Image
1

398

de13/spaceboy repository overview

spaceboy

Visit https://github.com/de13/ziggy for the complete helm chart!

Overview

Spaceboy is a simple go web app for demoing K8s features by exposing the following routes on port 8080:

  • "/": Display the hostname of the Container/Pod.
  • "/heatltz": Shows a pretty ASCII art (inspired by Stranger Things saison 2) with a status code 200 during 120 seconds by default, then displays "A fatal error has occured!!!" with status code 503.
  • "/ready": Displays "Almost here..." with a status code 503 during the first 30 seconds (by default), then "Ready!" with a status code 200.

Options

You can overwrite default parameters:

  • "--healthz|-h" int (in seconds): change the healthz delay (default is 120 seconds)
  • "--ready|-r" int (in seconds): change the readiness delay (default is 30 seconds)

Examples

$ docker run -p 8080:8080 -d de13/spaceboy:v2 -r 5 -h 30 # set Readiness to 5s and Health to 30s

$ docker run -p 8080:8080 -d de13/spaceboy:v2 --ready 60 # set Readiness to 60s

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

about 7 years ago

docker pull de13/spaceboy:v3