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
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:
- Current working directory (
./config.yaml) /etc/segla/config.yaml