oz0 server healthcheck
Usage and flags for oz0 server healthcheck.
For: Operators and developers looking up a command.
Ask a server on this machine whether it is ready (GET /readyz on the edge's HTTPS port, which a fenced edge answers with 503) and exit 0 when it is, 1 when not. It is meant for HEALTHCHECK in a container and compose's depends_on. It reads only the answer's status, and the server's certificate comes from the cluster's own CA, which this command does not have, so it does not check the certificate: it takes loopback addresses only.
Usage
oz0 server healthcheck [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 5s | how long to wait for an answer |
--url | string | https://127.0.0.1:7443/readyz | the readiness address to ask, on this machine |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.