Day 33 Launching Kubernetes Cluster with Deployment!
Shubham Niranjan
NOC Engineer | CCNA, CCNP, Linux, AWS, Git, Github, Python, Shell scripting | DevOps & Cloud enthusiast.
Yesterday, I was neck-deep in Kubernetes, deciphering its architecture, and today I’m stepping up my game by actually launching a Kubernetes cluster with Deployment. Fancy, right? If you're still catching up, no worries! This task is straightforward, and exciting, and gives your resume that extra sparkle! ??
What is a Deployment in Kubernetes?
Imagine being a manager with a team that magically fixes itself when someone falls sick (auto-healing) and grows instantly when there’s a party to plan (auto-scaling). That’s what a Deployment does for your apps in Kubernetes! It’s like the Swiss Army knife for Pods and ReplicaSets.
In simple terms:
Today’s Task: Todo-App Deployment
Should you accept it, the mission is to deploy a sample Todo app using Kubernetes’ auto-healing and auto-scaling features.
Here’s how I did it (spoiler: it wasn’t without drama ):
Step 1: The Deployment YAML File
The magic starts with the deployment.yml file. Here’s a sneak peek at mine:
Step 2: Deploy to Minikube
With the YAML file ready, I applied it to my Kubernetes cluster (running on Minikube):
Success? Well, not quite yet. Here’s where the fun started. ??
Hurdles and How I Jumped Over Them
2. Probes Misconfigured ??♀?
Lesson learned: Typos are evil.
3. Scaling Issues ???♂?
Step 3: Verify Deployment
I verified my deployment with these handy commands:
kubectl get pods
kubectl get deployment
minikube service todo-app
Seeing my Todo app up and running felt like winning the lottery (without the money, unfortunately).
Pro Tips for You!
Final Words
Deployments might sound daunting, but trust me, once you see your app scaling and healing on its own, you’ll be hooked!
Want to know more or get help? Check out my detailed documentation or feel free to ask questions in the comments. Let’s make DevOps fun together!
Stay tuned for Day 34—something tells me it’ll be even more exciting!