Week in Review: Rediscovering Kubernetes Basics
This week, I took a step back to revisit Kubernetes, or “kub,” as I like to call it. Having worked with it in the past, I realized that going over the fundamentals again would solidify my understanding and prepare me better for the next steps in my DevOps journey.
What I Relearned
1. Kubernetes Architecture
At the core, Kubernetes is a container orchestration platform. Its architecture is designed to automate the deployment, scaling, and management of containerized applications. Here are key components I revisited:
Master Node: The control plane of Kubernetes, responsible for managing the worker nodes and the entire cluster.
Worker Nodes: These run the actual applications inside containers, managed by the master.
Pods: The smallest deployable units in Kubernetes, representing one or more containers running together on a node.
Services: Help expose applications running in Pods to the outside world or within the cluster.
2. kubectl Commands
I re-familiarized myself with some of the key kubectl
commands that are essential for interacting with the cluster. These included:
kubectl apply -f <filename>
: Deploy configurations or resources.kubectl get pods
: Check the status of Pods running in the cluster.kubectl describe pod <pod_name>
: Get detailed information about a Pod.
3. YAML Configurations
Understanding how Kubernetes uses YAML files to define the desired state of resources was another key focus this week. Whether defining a Deployment, Service, or Ingress, the structure of these files is crucial for managing Kubernetes effectively.
Mistakes and Debugging
While relearning Kubernetes, I encountered some errors, especially with configuring YAML files. Here's what I learned:
Indentation Errors: YAML is highly sensitive to indentation. Missing or extra spaces can break the configuration. Keeping an eye on this helped fix several issues.
Resource Limits: I realized that misconfiguring resource limits in Pods (CPU and memory) can affect performance. Adjusting these in the YAML file was critical.
Tools Used
I continued using the bash script I developed for resetting and reinitializing Kubernetes clusters. This helped streamline my setup and testing processes.
Final Thoughts
Taking a step back to relearn Kubernetes gave me a fresh perspective on how powerful it is as a tool for managing containerized applications. I’ll continue building on this foundation as I dive deeper into advanced Kubernetes topics.
Subscribe to my newsletter
Read articles from AbuBakar khan lakhwera directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
AbuBakar khan lakhwera
AbuBakar khan lakhwera
Hi, I’m Abubakar Khan Lakhwera. I’m passionate about full-stack development, with a focus on Django and web technologies. Currently, I’m diving deep into Django’s features, enhancing my DevOps skills, and exploring cloud technologies. I enjoy solving coding challenges and sharing my insights through detailed articles. Outside of tech, I explore new trends and enjoy reading. Connect with me to follow my learning journey and tech explorations!