Virtual Kubelet is an open-source kubelet implementation that registers as a Kubernetes node and delegates pod lifecycle to external providers such as serverless container platforms.
Overview
Virtual Kubelet masquerades as a kubelet so the Kubernetes control plane can schedule pods onto logical nodes backed by other APIs. The design is explicitly not a Kubernetes federation replacement; instead it extends the Kubernetes API onto platforms like cloud container instances, Nomad, edge devices, or remote clusters via pluggable providers.
Consumers embed the library to implement PodLifecycleHandler, optional PodNotifier callbacks, and NodeProvider status updates, then wire provider-specific create, delete, log, exec, and metrics behavior. Helpers exist for API-server-facing endpoints such as kubectl logs and exec. Providers without service discovery may need cluster-level workarounds documented for load balancer integration on older Kubernetes versions.
Multiple provider projects build on the same interfaces for Azure Container Instances, AWS Fargate, Alibaba ECI, OpenStack Zun, HashiCorp Nomad, multi-cluster schedulers, and other backends. Virtual Kubelet is a CNCF sandbox project described as Kubernetes API on top with a programmable back end.
Key features
- Pluggable provider architecture
- Pod create, update, and delete lifecycle
- Container logs, exec, and metrics
- Node capacity and address reporting
- Optional asynchronous PodNotifier
- HPA support via stats summary
- NaiveNodeProvider helper
- Many community cloud providers
Use cases
- Schedule pods onto serverless containers
- Burst workloads to remote Kubernetes
- Run Kubernetes pods on Nomad or edge
- ACI or Fargate as Kubernetes nodes
- Custom backends via provider interface