Writing a Kubernetes Cloud Controller Manager: Bridging Your Infra to Kubernetes

A Cloud Controller Manager (CCM) connects Kubernetes to cloud or private-infrastructure APIs. Its controllers add provider-specific node data and manage services or routes the cluster cannot create itself. Without a cloud provider that supports them, Kubernetes cannot populate some cloud-specific node fields or provision a cloud load balancer for type: LoadBalancer. I’ve spent a good chunk of time in this code, both building on top of kubernetes/cloud-provider directly and reading through what Hetzner’s and DigitalOcean’s CCMs do differently. This post covers the interface, the four control loops that drive it, the full node/route/service lifecycle, and the patterns worth stealing once you’ve got the basics working. ...

August 6, 2026 · 26 min