DEV Community

loading...
Cover image for Complete Guide to setting up your Application using Kubernetes Components

Complete Guide to setting up your Application using Kubernetes Components

techworld_with_nana profile image Techworld with Nana ・1 min read

Or how to get started with Kubernetes in practice 🤠

Instead of creating each component separate without context, this video goes through a complete application setup using several Kubernetes components: pod, deployment, service, configmap and secret.

It's a hands-on, practical tutorial of using the different Kubernetes Components together, which will give you a big picture.

We basically create the Kubernetes infrastructure for this browser request flow:
request flow through kubernetes components

Starting from the request end we step by step create the following:

1) MongoDB Deployment

Creating the database container/pod, in which the mongodb runs.

2) Secret

Creating the Secret component, where the username and password are stored.

3) Internal Service

Creating the service for MongoDB to be accessible by other Kubernetes components.

4) Mongo Express Deployment

Creating the Mongo Express container/pod, in which the web application runs.

5) ConfigMap

Creating the ConfigMap component, where the server url of the MongoDB is stored.

6) External Service

Creating the external service for Mongo Express to be accessible from outside the kubernetes cluster (from the browser)

Although this is a beginner tutorial, if you never watched a video about Kubernetes, check out my other videos to learn the basic concepts. 🙅🏼‍♀️🤓


I'm happy to connect with you on

Discussion (2)

pic
Editor guide
Collapse
ramnikov profile image
Andrey Ramnikov

Very good tutorial.
I followed all the steps and could get the same result.
Waiting for your new release:-)

Collapse
techworld_with_nana profile image
Techworld with Nana Author

That's great, thanks Andrey :)