whoami
by m11s
Deploy Traefik Whoami, an HTTP server that reports runtime and request details
About this chart
whoami Helm Chart
whoami is a tiny HTTP server that prints OS information and HTTP request details. Useful for testing ingress, routing, and load balancing.
Installation
helm repo add m11s https://m11s-io.github.io/helm-charts
helm repo update
helm install whoami m11s/whoami -n whoami --create-namespace
Configuration
| Parameter | Description | Default |
|---|---|---|
hostUsers | Set spec.hostUsers for user namespaces; requires cluster and runtime support | null |
whoami.port | Port whoami listens on inside the container | 80 |
whoami.name | Display name printed in responses (useful with multiple replicas) | "" |
whoami.verbose | Enable verbose request logging | false |
replicaCount | Number of pod replicas | 1 |
service.type | Kubernetes Service type | ClusterIP |
service.port | Port the Service listens on | 80 |
httpRoute.enabled | Enable a Gateway API HTTPRoute | false |
httpRoute.parentRefs | Gateways the HTTPRoute attaches to; required when enabled | [] |
httpRoute.hostnames | Hostnames the HTTPRoute matches | [] |
resources.requests.cpu | Default CPU request | 10m |
resources.requests.memory | Default memory request | 16Mi |
resources.limits.memory | Default memory limit | 64Mi |
Endpoints
| Path | Description |
|---|---|
/ | Prints hostname, IPs, and full HTTP request |
/api | Same as / but as JSON |
/health | Health check; returns 200 by default, accepts POST to change the status code |
/data | Returns a configurable payload size (?size=1&unit=MB) |
/bench | Minimal response for benchmarking |
/echo | WebSocket echo |
Examples
Multiple named replicas with HTTPRoute
replicaCount: 3
whoami:
name: my-app
httpRoute:
enabled: true
parentRefs:
- name: gateway
namespace: gateway
hostnames:
- whoami.example.com
The chart creates only an HTTPRoute. It does not create a Gateway, because Gateways are usually owned by the cluster/platform layer. If the Gateway is in another namespace, its listener must allow routes from the whoami namespace with Gateway API allowedRoutes.
Manipulate the health check for testing
# Make /health return 503
kubectl run -it --rm --restart=Never curl --image=curlimages/curl -- \
curl -X POST -d '503' http://whoami.<namespace>/health
Source
- Chart: github.com/m11s-io/helm-charts
- Upstream: github.com/traefik/whoami
Deploy whoami with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has whoami on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartwhoami is pinned at v0.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply