port

fun port(port: Int): HealthzConfig


var port: Int

Port to run the healthz server on.

Default is 0, to have the server choose an available port - read it back with xtdb.api.Xtdb.healthzPort. Deployments that need a well-known port (container health checks, Kubernetes probes, Prometheus scrape targets) MUST set it explicitly.