Configuration
Configuration
Section titled “Configuration”Brane nodes are configured through YAML files generated by branectl. This page documents the key configuration files and their options.
node.yml
Section titled “node.yml”The main configuration file for any Brane node. It specifies the node type, service ports, and paths to other configuration files.
Location: ./node.yml (by default)
Key fields:
# Node kind: "central", "worker", or "proxy"node: kind: central # Hostname where this node is reachable hostname: central.example.com
# Paths to other config files (relative to node.yml)paths: certs: ./config/certs infra: ./config/infra.yml # Central only proxy: ./config/proxy.yml backend: ./config/backend.yml # Worker only
# Service portsservices: api: port: 50051 drv: port: 50053Generate with:
# Centralbranectl generate node -f central <HOSTNAME>
# Workerbranectl generate node -f worker <HOSTNAME> <LOCATION_ID>infra.yml (Central Node)
Section titled “infra.yml (Central Node)”Defines the worker nodes registered in the instance.
Location: ./config/infra.yml
Structure:
# Each worker is listed with its location ID and addresslocations: hospital-a: address: hospital-a.example.com hospital-b: address: 192.0.2.2Generate with:
branectl generate infra -f -p ./config/infra.yml \ hospital-a:hospital-a.example.com \ hospital-b:192.0.2.2backend.yml (Worker Node)
Section titled “backend.yml (Worker Node)”Defines how the worker executes containers.
Location: ./config/backend.yml
Default (local Docker backend):
backend: kind: localGenerate with:
branectl generate backend -f -p ./config/backend.yml localproxy.yml
Section titled “proxy.yml”Configures network proxying behavior. Default settings work for most deployments.
Location: ./config/proxy.yml
Generate with:
branectl generate proxy -f -p ./config/proxy.ymlModifying Configuration
Section titled “Modifying Configuration”All configuration files can be edited manually after generation. To apply changes:
- Stop the node:
branectl stop <node_type> - Edit the configuration file
- Restart the node:
branectl start <node_type>
Environment Variables
Section titled “Environment Variables”Some settings can also be controlled via environment variables. Run branectl start --help for a full list of supported overrides.