CLI Reference¶
Command-line options for the 5-Spot controller.
Synopsis¶
Options¶
| Option | Short | Default | Description |
|---|---|---|---|
--enable-leader-election |
false |
Enable leader election for HA | |
--lease-name |
5spot-leader |
Lease resource name | |
--lease-duration |
15 |
Lease validity in seconds | |
--metrics-port |
8080 |
Port for Prometheus metrics endpoint | |
--health-port |
8081 |
Port for health check endpoints | |
--verbose |
-v |
Enable verbose (debug) logging | |
--help |
-h |
Print help information | |
--version |
-V |
Print version information |
Environment Variables¶
All options can be set via environment variables:
| Variable | CLI Equivalent |
|---|---|
ENABLE_LEADER_ELECTION |
--enable-leader-election |
LEASE_NAME |
--lease-name |
LEASE_DURATION_SECONDS |
--lease-duration |
LEASE_RENEW_DEADLINE_SECONDS |
Renew deadline (default: 10) |
LEASE_RETRY_PERIOD_SECONDS |
Retry period (default: 2) |
METRICS_PORT |
--metrics-port |
HEALTH_PORT |
--health-port |
RUST_LOG |
--verbose (sets to debug) |
Environment variables take precedence over CLI arguments.
Examples¶
Basic Usage¶
High Availability with Leader Election¶
Custom Ports¶
Debug Logging¶
Fine-Grained Logging¶
Utility Binaries¶
crdgen¶
Generate CRD YAML from Rust types:
crddoc¶
Generate API documentation:
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Configuration error |
Related¶
- Configuration - Detailed configuration
- Multi-Instance - Multi-instance setup
- API Reference - API documentation