Deploying our first application
We will take our pets application, which we first introduced in Chapter 11, Managing Containers with Docker Compose, and deploy it into a Kubernetes cluster. Our cluster will be Docker Desktop, which, as you know, is offering us a single node Kubernetes cluster. However, from the perspective of deployment, it doesn’t matter how big the cluster is and whether the cluster is located in the cloud, in your company’s data center, or on your workstation.
Deploying the web component
Just as a reminder, our application consists of two application services: the Node-based web component and the backing PostgreSQL database. In the previous chapter, we learned that we need to define a Kubernetes Deployment object for each application service we want to deploy. We’ll do this for the web component first. As always in this book, we will choose the declarative way of defining our objects:
- We will use our local Kubernetes single-node...