Skip to main content

Health checks for the Gateway Controller and Gateway Runtime

You're reading API Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

This guide is for developers and platform operators wiring liveness and readiness checks for the API Platform Gateway into Docker Compose or Kubernetes. The Gateway Controller and the Gateway Runtime each expose HTTP endpoints that report whether that component is ready to handle traffic.

The gateway has three health surfaces:

  • The Gateway Controller admin API, reachable at /api/admin/v1/health.
  • The Router, reachable at /_gateway-health/healthy and /_gateway-health/ready on the same ports that serve API traffic.
  • The Policy Engine admin API, reachable at /health.

The Router and the Policy Engine each expose their own health endpoint inside the Gateway Runtime container.

Gateway Controller health endpoint​

The Gateway Controller exposes a health endpoint on its admin HTTP server:

ItemValue
Path/api/admin/v1/health
Legacy path/health (deprecated)
Default port9094
MethodGET
Healthy response200 with a JavaScript Object Notation (JSON) body: {"status": "healthy", "timestamp": "..."}

Test it directly with:

curl http://localhost:9094/api/admin/v1/health

The Gateway Controller enforces an Internet Protocol (IP) allowlist on its admin API and, when configured, also requires Basic authentication. It exempts both /api/admin/v1/health and the legacy /health from both checks, so Docker and Kubernetes probes can reach them without credentials. It still requires an allowed IP and, if enabled, valid credentials for every other admin path.

Gateway Runtime health checks​

The Gateway Runtime container runs the Router and the Policy Engine, and each exposes its own health endpoint.

Router liveness and readiness​

The Router exposes two dedicated endpoints on its regular ingress listeners, so no separate admin port is involved:

ItemValue
Liveness path/_gateway-health/healthy
Readiness path/_gateway-health/ready
Ports8080 (HTTP ingress) and 8443 (HTTPS ingress)
MethodGET
Healthy response200 with {"status": "healthy"} or {"status": "ready"}
curl http://localhost:8080/_gateway-health/healthy
curl -k https://localhost:8443/_gateway-health/ready

Both paths answer on both ports. The example above pairs liveness with the HTTP listener and readiness with the HTTPS listener.

The Router reserves the path prefix /_gateway-health for its own liveness and readiness routes, so no other route can use it.

Policy Engine health​

The Policy Engine admin server exposes its own health endpoint:

ItemValue
Path/health
Default port9002
MethodGET
Healthy response200 with {"status": "healthy", "timestamp": "..."}
curl http://localhost:9002/health

The Policy Engine admin server has no Basic authentication layer, and /health bypasses even its IP allowlist, so probes always reach it.

Configuring health checks​

Add a healthcheck: block to each service, using curl against each component's health path.

  1. For the gateway-controller service, point the healthcheck at the admin health path:

    services:
    gateway-controller:
    healthcheck:
    test: ["CMD", "curl", "-f", "http://localhost:9094/api/admin/v1/health"]
    interval: 10s
    timeout: 3s
    retries: 5
    start_period: 10s
  2. The gateway-runtime container isn't ready to handle traffic unless both processes report healthy. Check the Router's readiness path and the Policy Engine's health path in the same healthcheck:

    services:
    gateway-runtime:
    healthcheck:
    test: ["CMD-SHELL", "curl -f http://localhost:8080/_gateway-health/ready && curl -f http://localhost:9002/health"]
    interval: 10s
    timeout: 3s
    retries: 5
    start_period: 10s

Was this page helpful?