In the below demo video we go through a practical use case of deploying applications on a managed Kubernetes cluster on Linode Kubernetes Engine.
I will show you how to deploy a replicated database, configure its persistence and making it available with a UI client from browser using Ingress. To make the process more efficient, we will also use Helm Charts (Helm is a package manager for Kubernetes). 🚀
You will need this setup almost always for your Kubernetes cluster. No matter which database or cloud platform you use. So you can use the concept you learn in this video for many other use cases as well ✅
- Deploy replicated MongoDB (StatefulSet using Helm)
- Configure Data Persistence for MongoDB
- Deploy MongoExpress (Deployment and Service)
- Deploy NGINX Ingress Controller as Loadbalancer (using Helm)
- Configure Ingress rule
In detail we will deploy MongoDB on Linode Kubernetes Cluster using Helm (1.). We will create replicated MongoDB using StatefulSet component and configure data persistence for MongoDB with Linode's cloud storage (2.).
Then we will deploy MongoExpress, a UI client, for MongoDB database to access it from the browser (3.). For this client we will configure NGINX Ingress Controller (4.), which means deploying Ingress Controller in the cluster and configure Ingress rule to route the request to MongoExpress internal Service (5.).
If you need some pre-knowledge of some Kubernetes components, e.g. what StatefulSet is, how Data Persistence work in Kubernetes and what Ingress and Helm is in general etc. check out my Kubernetes playlist, which covers everything in detail 💡 https://www.youtube.com/playlist?list=PLy7NrYWoggjwPggqtFsI_zMAwvG0SqYCb
Watch the full video here 🤓
All the source code is documented on Gitlab ► Gitlab LKE Demo so you can follow along easily. 🙌🏼
Like, share and follow me 😍 for more content: