Monday, December 21, 2020

Using Tanzu Service Manager to expose Tanzu Postgres services to Cloud Foundry

There have been a few products under the Tanzu brand which have fairly recently been made generally available.  These being Tanzu Postgres for Kubernetes and the Tanzu Service Manager.  A very useful combination of products which can be used to make the Postgres database available to applications running on cloud Foundry (Or Tanzu Application Service - TAS) environment.

So what are these products and how to they operate.  Firstly Tanzu Postgres, this is simply a deployment of the OSS Postgres database with the support of VMWare.  Under the guise of Pivotal there has been a commercial offering for Postgres on Virtual Machines for many years and in recent times the engineering effort has been expended to migrate this wonderful database such that it is containerised and can run on the Kubernetes orchestration engine.  

The distribution has been split into a couple of components, firstly the deployment of an operator which can be used to manage the lifecycle of a postgres instance.  This makes the creation of an instance as simple as applying a yaml file configuration to Kubernetes.

Tanzu Service Manager (TSMGR) is a product which runs on Kubernetes and provides an OSBAPI (Open Service Broker API) interface that is integrated with the Cloud Controller of Cloud Foundry.  It manages helm chart based services that run on Kubernetes and makes them available to applications and application developers in Cloud Foundry such that the service looks like it has a fully native integration.  

So if we put these two together we have a fully supported version of Postgres running on Kubernetes that can be made available to applications running in the Tanzu Application Service.  

For an example installation of Tanzu Postgres with the Service Manager have a look at my github repo.