DEV Community

Cover image for Complete Guide to setting up your Application using Kubernetes Components
TechWorld with Nana
TechWorld with Nana

Posted on

8 2

Complete Guide to setting up your Application using Kubernetes Components

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

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Top comments (2)

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 β€’

That's great, thanks Andrey :)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay