Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command Line Options

FlagDescriptionDefault
--targets <file> / -f <file>Path to configuration fileRequired
--port <port>Port to listen on3000
--watchEnable configuration file watching for hot-reloadingtrue
--metricsEnable Prometheus metrics endpointtrue
--metrics-port <port>Port for metrics and /healthz, /readyz9090
--metrics-prefix <prefix>Prefix for metric namesonwards
--shutdown-delay-secs <seconds>Continue serving after readiness fails, before closing admission5
--shutdown-timeout-secs <seconds>Deadline for draining accepted requests after closing admission; must be positive300

The shutdown settings also accept ONWARDS_SHUTDOWN_DELAY_SECS and ONWARDS_SHUTDOWN_TIMEOUT_SECS. See Graceful shutdown for the signal sequence, health probes and Kubernetes termination budget.

Examples

Start with defaults:

cargo run -- -f config.json

Custom port, metrics disabled:

cargo run -- -f config.json --port 8080 --metrics false

Custom metrics configuration:

cargo run -- -f config.json --metrics-port 9100 --metrics-prefix gateway