OCIFBSD_ORCHESTRATION(3) FreeBSD Library Functions Manual OCIFBSD_ORCHESTRATION(3)

ocifbsd_orchestrationocifbsd pod, stack, and scheduling library

#include <ocifbsd/orchestration.h>

int
orch_init(struct orch_config *cfg);

void
orch_shutdown(void);

int
pod_create(struct pod_spec *spec);

int
pod_start(const char *name);

int
pod_stop(const char *name, int timeout);

int
pod_delete(const char *name);

int
pod_scale(const char *name, int replicas);

int
stack_deploy(struct stack_spec *spec);

int
health_check_pod(const char *name);

int
rolling_update(struct pod_spec *new_spec);

int
scheduler_place(struct pod_spec *spec, struct node_info *nodes, int n_nodes);

The ocifbsd_orchestration library implements the high-level orchestration primitives used by ocifbsd(8) to manage pods, stacks, and rolling updates. It is not a standalone program; it is linked into the main ocifbsd(8) binary.

The library is organised into seven functional modules:

The library calls the container lifecycle functions (ocifbsd_create_container, ocifbsd_start_container, etc.) that live in the main ocifbsd(8) binary. When the library is loaded standalone, the () file in this directory provides stub implementations of those functions so the library can be linked and tested in isolation. When it is linked into the main ocifbsd(8) binary, the real implementations override the stubs.

The full public API is declared in <ocifbsd/orchestration.h>.

/etc/ocifbsd/orchestration.conf
Orchestration defaults (replica limits, rolling-update parameters, health-check intervals).
/var/run/ocifbsd/pods
Per-pod state directory.
/var/db/ocifbsd/stacks
Stack manifests.

ocifbsd(8), ocifbsd_network(3)

The ocifbsd_orchestration library first appeared in FreeBSD 16.0.

The ocifbsd_orchestration library was developed by Klara, Inc. under sponsorship from

FreeBSD 15.1-STABLE June 5, 2026 OCIFBSD_ORCHESTRATION(3)