Design a Kubernetes-like control plane that schedules pods onto nodes, manages rolling deployments, service discovery, and autoscaling. The API must stay available while etcd-like state stays consistent.
Functional requirements
- Declarative desired state for workloads, configs, and secrets
- Scheduler placing pods with affinity, resources, and topology spread
- Rolling updates, rollbacks, and health-based readiness gates
- Service discovery and load-balanced ClusterIP or ingress integration
- Horizontal pod autoscaling on CPU, memory, or custom metrics
Non-functional requirements
- Highly available control plane with leader-elected components
- Strong consistency for API objects via etcd or equivalent
- Reschedule workloads quickly on node failure
- Secure multi-tenant namespaces with RBAC and quotas