How psviderski/uncloud works
Main Components
a) Client Layer:
• CLI components (cmd/uncloud and cmd/ucind)
• Main command groups: machine, service, and cluster management
b) Control Plane:
• Daemon component (cmd/uncloudd)
• Cluster management system
• Configuration management system
c) Machine Layer:
• Docker host management
• Network management (WireGuard)
• Container orchestration
• Storage management
d) Communication Layer:
• gRPC API services (visible in internal/machine/api/pb)
• Network tunneling
• SSH connectivity
Key Relationships to Illustrate
[Client CLI] → [Control Plane Daemon] → [Machine Layer]
• ↓
• [Network Mesh Layer]
Specific Component Details
a) Control Plane Components:
• Subcomponents:
• Cluster State Manager
• IPAM (IP Address Management)
• Service Orchestrator
• Configuration Store
b) Machine Layer Components:
• Docker Engine integration
• Network management (WireGuard)
• Container runtime
• Storage subsystem
c) Network Mesh:
• WireGuard overlay network
• Service discovery
• Load balancing
Important Architectural Patterns to Highlight
• Peer-to-peer nature of the network mesh
• Service discovery mechanism
• Demonstrate the control plane's relationship with individual nodes
• How configuration propagates through the system
Technical Details
• gRPC API endpoints
• WireGuard overlay network
• Docker API integration
• State management system
• Configuration distribution
┌─ Client Layer ─────┐ ┌─ Control Plane ──────┐ ┌─ Machine Layer ─────┐
• uncloud CLI │ │ - Cluster Management │ │ - Docker Runtime │
• ucind CLI │━━━▶│ - Service Orchestrator│━━━▶│ - Container Mgmt │
• ┘ │ - Configuration Store │ │ - Network Overlay │
• ┬────────────┘ └──────────┬─────────┘
• ▼ ▼
• ┌─ Network Mesh ──────────────────────────┐
• WireGuard Overlay │
• Service Discovery │
• Load Balancing │
• ┘