Skip to content

Configuration

The agent is configured via a YAML file and/or CLI flags. CLI flags take precedence over the config file.

Config file

Default location: /etc/segla/config.yaml

api_addr: gw.segla.io:443
interval: 30s
log_level: info
log_format: json

Options

Option Config key CLI flag Default Description
API address api_addr --api-addr Segla platform gRPC endpoint
Reconcile interval interval --interval 30s How often to poll for desired state
Log level log_level --log-level info debug, info, warn, error
Log format log_format --log-format json json or text
State directory state_dir --state-dir /var/lib/segla Where bbolt state DB is stored
Socket path socket_path --socket-path /var/run/segla/segla.sock Unix socket for local CLI commands
Config file --config /etc/segla/config.yaml Path to config file

Config file lookup order

If --config is not specified, the agent looks for config.yaml in:

  1. Current working directory (./config.yaml)
  2. /etc/segla/config.yaml

Examples

Development / debugging

api_addr: gw.segla.io:443
interval: 10s
log_level: debug
log_format: text

Production (default)

api_addr: gw.segla.io:443
interval: 30s
log_level: info
log_format: json