Cloud Foundry on Kubernetes

Because Kubernetes can run any workload distributed as container images, Kubernetes can run Cloud Foundry itself. When installed on Kubernetes, Cloud Foundry presents a streamlined self-service interface for application developers to deploy apps onto Kubernetes, whilst allowing the Kubernetes operators to maintain more control over what is running on the system. For any workload not suited for Cloud Foundry, Kubernetes can be used directly.

Benefits

By running Cloud Foundry on Kubernetes, you can leverage the knowledge and skills of operators who already know Kubernetes and the Cloud Native Computing Foundation ecosystem of tools.

Compared to running Cloud Foundry on virtual machines (via BOSH), Cloud Foundry on Kubernetes can make more efficient use of resources, and potentially perform platform-level upgrades faster. While this capability is maturing quickly, it is currently still undergoing significant development to bring feature parity when compared to running CF on virtual machines.

Projects

Currently, two open source projects aim to bring the cf push experience to Kubernetes:

  • KubeCF is currently the most widely-adopted Cloud Foundry distribution available for Kubernetes that you can install yourself. SUSE provide a commercial version called SUSE Cloud Application Platform, and IBM offer the KubeCF-based IBM CFEE too.

  • cf-for-k8s is an on-going project that is repackaging Cloud Foundry for Kubernetes, and also switching some internal components for more Kubernetes-native equivalents. At the time of writing it is not ready for production use, but is making great progress.

It is the intention of the Cloud Foundry community and members of the Kubernetes SIG that KubeCF and cf-for-k8s converge. Plus, as the Cloud Foundry CLI and API are standardized and certified, you could easily switch between different certified distributions if you wanted to.