command module
Version: v1.1.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 0



This is a fork from https://github.com/containous/whoami.

Tiny Go webserver that prints os information and HTTP request to output

$ docker run -d -P --name iamfoo bee42/whoami:1.2.0
$ docker inspect --format '{{ .NetworkSettings.Ports }}'  iamfoo
map[80/tcp:[{ 32769}]]
$ curl ""
Hostname :  6e0030e67d6a
IP :
IP :  ::1
IP :
IP :  fe80::42:acff:fe11:1b
GET / HTTP/1.1
User-Agent: curl/7.35.0
Accept: */*


  • GET / prints runtime information, ip addresses
  • GET /health returns current healthstatus of the app
  • POST /health sets current healthstatus of the app
  • GET /echo prints an echo back
  • GET /api prints runtime information, ip addresses in json
  • GET /bench wait a long time before repsonse
  • GET /version prints podinfo version and git commit hash


Setting version in 2.0.0

$ docker run -d -p 8086:80 -e WHOAMI_VERSION=2.0.0-release bee42/whoami:2.0.0
$ curl

Metrics with prometheus

  • GET /metrics get prometheus metrics form go process
$ docker run -d -p 8087:80 -e WHOAMI_VERSION=2.1.0-release bee42/whoami:2.1.0
$ curl
$ curl

Currently the request of ´/api´ and ´/´ are measured.

Kubernetes deployment with the helm charts
$ cd whoami
$ helm install -n whoami --namespace whoami .

With --set nginx-ingress.enabled=trueyou can deploy a local NodePort nginx

Look inside values.yaml for more options.

Regards Peter Rossbach (peter.rossbach@bee42.com)


The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL