Skip to content

Top level

This page is generated from the same Go declarations the loader enforces, so it cannot drift from what ob validate accepts.

api_version · app · args · base_path · build · compose · context · dockerfile · domain · entrypoint · exec · health · http · image · interval · middlewares · path · platform · port · protocol · pull · reference · registry · retries · routes · scheme · start_period · target · tcp · tls · within

FieldTypeDefaultWhat it does
api_version *stringProject contract version. Must be onebox.run/v1.
appstringStable application name used in generated container, volume, network, and host paths. The application’s name. Expects lower-case letters, digits and hyphens, starting with a letter, at most 40 characters, and may not begin “ob-” or be a name the host layout reserves.
base_pathstring/var/lib/obAbsolute host directory beneath which Onebox stores application state and releases. Expects an absolute path with no control character or shell metacharacter.
buildobjectBuild metadata for development. Production requires a resolved image supplied with —image. Also accepts a build context path.
build.argsmapBuild arguments supplied by the external build system.
build.contextstringRepository-relative build context. Expects a path inside the repository, with no control character or shell metacharacter.
build.dockerfilestringRepository-relative Dockerfile path. Expects a path inside the repository, with no control character or shell metacharacter.
build.platformstringTarget image platform for the external build.
build.targetstringNamed Dockerfile stage to build.
composestringExisting Compose service to adopt, as repository path#service. Expects a reference of the form path/to/compose.yaml#service.
domainstringDomain shorthand for one HTTPS route; requires port and cannot be combined with routes.
healthobjectReadiness check used to gate rolling replacement. Also accepts an HTTP health path.
health.execHealth command as a shell string or direct argument list.
health.httpstringHTTP path probed inside the container. Expects a path beginning with /.
health.intervalstringDelay between container health probes. Expects a duration such as 30s, 5m, 1h30m or 14d.
health.portintegerContainer port probed by HTTP or TCP health checks.
health.retriesintegerConsecutive failed probes before the container is unhealthy.
health.start_periodstringStartup grace period before failed probes count. Expects a duration such as 30s, 5m, 1h30m or 14d.
health.tcpbooleanfalseProbe the configured port by opening a TCP connection.
health.withinstringMaximum time a rollout waits for readiness. Expects a duration such as 30s, 5m, 1h30m or 14d.
imageobjectContainer image source, written as a reference string or an object. Also accepts an image reference.
image.platformstringPlatform selected when the image is multi-platform.
image.pullalways · missing · nevermissingImage pull policy: missing, always, or never.
image.referencestringComplete container image reference, optionally tagged or digest-pinned. Expects a registry reference such as nginx:1.27 or ghcr.io/acme/app@sha256:….
image.registrystringOptional registry label retained in canonical configuration. Current authentication uses every top-level registries entry; this field does not select a login.
portintegerContainer port used with domain shorthand and as the default HTTP health port.
routeslistIngress routes exposed by this workload.
routes[].domainstringDNS name matched by the proxy.
routes[].entrypointstringwebsecureNamed proxy listener used for the route.
routes[].middlewareslistOrdered provider-qualified middleware references applied to this route.
routes[].pathstring/URL path prefix matched by an HTTP route. Expects a path beginning with /.
routes[].portintegerContainer port receiving routed traffic.
routes[].protocolhttp · tcphttpRouting protocol: http, tcp, or udp.
routes[].schemehttp · https · h2chttpBackend connection scheme: http, https, h2c, tcp, or udp.
routes[].tlsterminate · passthrough · noneterminateTLS handling: terminate, passthrough, or none.

* marks a field that is required within its own object.