Day 9 : Deploying Microservices on Kubernetes - Project Journey

Day 9 : Deploying Microservices on Kubernetes - Project Journey

ยท

3 min read

Hey guys, it's Day 9 of my SRE and Cloud Security journey, and I'm pumped to share what I accomplished today! I successfully deployed a three-microservice application on Kubernetes โ€“ it was definitely a challenge, but I tackled it head-on and learned a ton in the process. Let's just say, I had more than a few "oh, no, not again" moments, but I emerged victorious, and that's what matters!

I'm excited to share the challenges I faced, the solutions I implemented, and everything in between. Buckle up, because this journey is packed with valuable insights, and maybe even a few laughs along the way. I hope it inspires you as much as it inspired me to take on this project. Let's dive in!

Project Structure:

Setting Up the Kubernetes Cluster:

Deploying Microservices:

Configuring Ingress:

Challenges:

Solutions:

  • Image Pull: Verified image names/tags, corrected deployment files, and ensured images were available in the registry. I finally found the right street signs and made sure the addresses were correct.

  • Networking: Updated service configurations with appropriate service types (ClusterIP, LoadBalancer). I got my hands on a proper map and built the roads correctly.

  • Ingress: Configured Ingress with correct annotations, host definitions, and ensured the Ingress controller was properly set up. I finally found the right spot for the door and built a grand entrance that everyone could admire.

Additional Challenge:

  • Host File Modification: Since I didn't have a domain name, I had to manually add the generated IP address of my Kubernetes cluster to the host file on my Windows machine. This involved opening the host file (C:\Windows\System32\drivers\etc\hosts) as administrator, adding the IP address and desired domain name, and saving the changes. It was like adding a new address to my own personal map to find my way to my microservices city.

Conclusion:

Day 9 involved deploying microservices on Kubernetes, overcoming image pull, networking, and Ingress configuration challenges. The host file modification was an additional step to access the cluster using a custom domain name. This project reinforced my understanding of Kubernetes deployments and the importance of thorough configuration and troubleshooting. I'm feeling pretty confident now, like I've got the map to my microservices city memorized!

ย