Files
compute-blade-agent/cmd/agent/default-config.yaml
Cedric Kienzler 70541d86ba feat(agent)!: add support for mTLS authentication in gRPC server (#54)
* refactor(fancontroller): improve fan controller validation logic and error handling for temperature steps

* refactor(agent): restructure gRPC server implementation by moving it to a new api package for better organization and maintainability

* feat(agent): implement gRPC server for managing compute blade agents and add graceful shutdown support
refactor(agent): restructure agent code by moving API logic to a dedicated file and improving error handling
fix(agent): update logging messages for clarity and consistency across the agent's operations
chore(agent): remove unused API code and consolidate event handling logic for better maintainability
style(agent): improve code formatting and organization for better readability and adherence to conventions

* feat(agent): add support for TLS configuration in gRPC server

* feat(api): add gRPC server authentication

* fix

* feat(config): add listen mode configuration to support tcp or unix sockets
feat(agent): implement listen mode in gRPC service to allow flexible socket types
feat(bladectl): enhance configuration loading and add support for TLS credentials
fix(bladectl): improve error handling for gRPC connection and event emission
style(logging): change log level from Warn to Info for better clarity in logs

* add logging middleware + fixes

* fix remote-connection to gRPC API Server

debugging the SAN issues took the soul out of me... And then the stupid
mistake in cmd_root where I didn't construct the TLS credentials
correctly... Oh dear...

* cleanup

* cleanup

* cleanup commands

* cleanup

* make README.md nicer

* Update cmd/agent/main.go

Co-authored-by: Matthias Riegler <github@m4tbit.de>

* Update cmd/bladectl/cmd_root.go

Co-authored-by: Matthias Riegler <github@m4tbit.de>

* move bladectl config into correct directory

* fix bugs

* // FIXME: No dead code

* nit: code style

* nit(YAGNI): you aint gonna need it. Don't make life harder than it needs to be

* nit(YAGNI): you aint gonna need it. Don't make life harder than it needs to be

* nit(YAGNI): you aint gonna need it. Don't make life harder than it needs to be

* nit(cmd_identify)

---------

Co-authored-by: Matthias Riegler <github@m4tbit.de>
2025-05-12 00:00:55 +02:00

47 lines
955 B
YAML

# Default configuration for the compute-blade-agent
# Listen configuration
listen:
metrics: ":9666"
grpc: /tmp/compute-blade-agent.sock
authenticated: false
mode: unix # tcp or unix
# Hardware abstraction layer configuration
hal:
# For the default fan unit, fanspeed measurement is causing a tiny bit of CPU load.
# Sometimes it might not be desired
rpm_reporting_standard_fan_unit: true
# Idle LED color, values range from 0-255
idle_led_color:
red: 0
green: 16
blue: 0
# Identify LED color
identify_led_color:
red: 16
green: 0
blue: 16
# Critical LED color
criticalLedColor:
red: 64
green: 0
blue: 0
# Enable/disable stealth mode; turns off all LEDs on the blade
stealth_mode: false
# Simple fan-speed controls based on the SoC temperature
fan_controller:
steps:
- temperature: 45
percent: 40
- temperature: 55
percent: 80
# Critical temperature threshold
critical_temperature_threshold: 60