Quick Reference
Authentication
Configure API keys and Control Plane access
Worker Configuration
Worker behavior and resource limits
Logging & Debug
Control logging verbosity and debug output
Performance
Tune concurrency and timeouts
Authentication Variables
KUBIYA_API_KEY
API authentication key for accessing the Kubiya Control Plane.
- Required for all CLI operations
- Must start with
kby_prefix - Get from Composer UI or API
- Keep secure and rotate regularly
KUBIYA_BASE_URL
Base URL for Kubiya API endpoints.
- Custom API endpoint
- On-premise deployment
- Development/testing environment
CONTROL_PLANE_URL
Control Plane URL for worker registration and management.
- Worker registration
- Health heartbeats
- Event streaming
- Configuration fetching
CONTROL_PLANE_GATEWAY_URL
Override Control Plane URL. Takes precedence over
CONTROL_PLANE_URL.CONTROL_PLANE_GATEWAY_URL > CONTROL_PLANE_URL > default
Worker Configuration
QUEUE_ID
Worker queue identifier. Must match a queue configured in the Control Plane.
production-queuestaging-queuedev-team-queuehigh-priority-queue
ENVIRONMENT_NAME
Environment name for the worker instance.
- Logical grouping
- Environment-specific configuration
- Resource filtering
WORKER_HOSTNAME
Custom hostname for worker identification.
- Auto-detects system hostname
- In Kubernetes: Uses pod name
- In Docker: Uses container ID
HEARTBEAT_INTERVAL
Heartbeat interval in seconds (range: 15-300).
- Lower = More frequent health checks
- Higher = Reduced network overhead
- Recommended: 15-60 for production
Performance & Concurrency
MAX_CONCURRENT_ACTIVITIES
Maximum number of concurrent activity executions per worker.
- Low throughput: 5-10
- Medium throughput: 10-25
- High throughput: 25-50
- Consider CPU/memory limits
MAX_CONCURRENT_WORKFLOWS
Maximum number of concurrent workflow executions per worker.
- Workflows are heavier than activities
- Start with 5-10
- Monitor resource usage
- Scale horizontally if needed
ACTIVITY_TIMEOUT
Default activity timeout in seconds.
- Short tasks: 60-300s
- Medium tasks: 300-900s
- Long tasks: 900-3600s
- Max: 3600s (1 hour)
WORKFLOW_TIMEOUT
Default workflow timeout in seconds.
Logging & Debugging
LOG_LEVEL
Logging verbosity level: DEBUG, INFO, WARN, ERROR.
DEBUG: Detailed debugging informationINFO: General informational messagesWARN: Warning messagesERROR: Error messages only
KUBIYA_DEBUG
Enable comprehensive debug mode.
- Verbose HTTP request/response logging
- Detailed error stack traces
- Internal state debugging
- Performance metrics
KUBIYA_LOG_LEVEL
CLI-specific log level (separate from worker LOG_LEVEL).
Worker Daemon Configuration
MAX_LOG_SIZE
Maximum log file size in bytes before rotation (default: 100MB).
MAX_LOG_BACKUPS
Number of rotated log files to keep.
LOG_COMPRESSION
Enable gzip compression for rotated logs.
Network & Connectivity
HTTP_PROXY
HTTP proxy server for outbound connections.
HTTPS_PROXY
HTTPS proxy server for outbound connections.
NO_PROXY
Comma-separated list of hosts to bypass proxy.
CONNECTION_TIMEOUT
Connection timeout in seconds for HTTP requests.
REQUEST_TIMEOUT
Request timeout in seconds for API calls.
Temporal Configuration
TEMPORAL_NAMESPACE
Temporal namespace (usually auto-configured by Control Plane).
TEMPORAL_HOST
Temporal server host (usually auto-configured by Control Plane).
TEMPORAL_TLS_ENABLED
Enable TLS for Temporal connections.
Python Environment (Worker)
PYTHON_VERSION
Python version to use for worker virtual environment.
PIP_INDEX_URL
Custom PyPI index URL for package installation.
PIP_TRUSTED_HOST
Trusted host for pip installations (for custom indices).
Resource Limits (Docker/Kubernetes)
MEMORY_LIMIT
Memory limit for worker container.
CPU_LIMIT
CPU limit for worker container (millicores).
MEMORY_REQUEST
Memory request for worker container.
CPU_REQUEST
CPU request for worker container (millicores).
Feature Flags
ENABLE_METRICS
Enable metrics collection and export.
METRICS_PORT
Port for Prometheus metrics endpoint.
ENABLE_TRACING
Enable distributed tracing.
TRACING_ENDPOINT
OpenTelemetry tracing endpoint.
CLI-Specific Variables
KUBIYA_DEFAULT_RUNNER
Default runner for workflow and tool execution.
KUBIYA_DEFAULT_ENVIRONMENT
Default environment for resource operations.
KUBIYA_OUTPUT_FORMAT
Default output format: table, json, yaml.
Environment Profiles
Development Profile
Staging Profile
Production Profile
Configuration Examples
High-Throughput Worker
Long-Running Tasks Worker
Debug Worker
Corporate Proxy Setup
Best Practices
Security
Never commit environment variables with secrets to version control
Use
.env files and add them to .gitignoreRotate API keys regularly (at least quarterly)
Use secrets management tools (Vault, AWS Secrets Manager) in production
Performance
- Start conservative: Begin with default values
- Monitor metrics: Track CPU, memory, task execution time
- Scale horizontally: Add workers before increasing concurrency
- Test changes: Validate performance improvements
Organization
Validation
Troubleshooting
Common Issues
Authentication Failed
Authentication Failed
Check:
KUBIYA_API_KEYis set and starts withkby_- Key is not expired
- API endpoint is accessible
Worker Won't Connect
Worker Won't Connect
Check:
CONTROL_PLANE_URLis correct- Network connectivity
- Proxy settings (if applicable)
- Temporal credentials
Performance Issues
Performance Issues
Check:
MAX_CONCURRENT_ACTIVITIESnot too high- Resource limits appropriate
- Activity timeouts reasonable