Quickly try out Kubernetes with two Pods-web app and database

Lucas Jellema
3 min readOct 29, 2022

Two colleagues wanted to try out Kubernetes and more specifically deployment of an application on Kubernetes that was not entirely trivial. One that consists of at least two Pods — one running a database and one running an application.

A little internet browsing brought me to a single YAML file that defined the situation outline in the diagram below: two pods — one running a (Python based) web application and a MongoDB database respectively. Both pods expose a service on a specific port. The service for the front end pod is…

--

--

Lucas Jellema

Lucas Jellema is CTO and IT architect at Conclusion, The Netherlands. He is Oracle ACE Director, one time JavaOne Rockstar and programmer