☸️ Kubernetes (K8s)

Learn Kubernetes basics for QA, including pods, deployments, services, kubectl, YAML manifests, test environments and common errors.

Master Kubernetes from zero to interview level. Learn to deploy, scale, and manage containerized applications β€” the technology behind Google, Netflix, and every major tech company's infrastructure.

What you can learn on this page

  • 🎯 What is Kubernetes? β€” Kubernetes is like a smart shipping manager at a huge port. You don't tell each crane operator what to do step by step β€” you just say "I need 10 containers of goods delivered, always keep at least 5 ships loaded, and if one crane breaks, use another."
  • βš™οΈ Installing Kubernetes β€” For learning and local development you do NOT need a real cloud cluster. minikube creates a single-node K8s cluster on your laptop in minutes. For production, cloud providers (AWS EKS, Google GKE, Azure AKS) manage the Control Plane for you. Start with minikub
  • πŸ—οΈ Kubernetes Architecture β€” Think of a Kubernetes cluster as a company. The Control Plane is the management floor β€” CEO (API Server), memory/HR (etcd), scheduler (assigns tasks), and managers (controllers). The Worker Nodes are the actual offices where work happens β€” each has a superviso
  • πŸ“¦ Core Kubernetes Concepts β€” Pod β€” The Smallest Unit A Pod is like a shipping container (the physical box, not Docker). A Docker container is the goods inside. One pod usually has one container, but can have multiple containers that need to share network and storage β€” like a main app and
  • ⌨️ kubectl Commands Cheat Sheet β€” kubectl is the CLI tool for talking to your Kubernetes cluster. Think of it as the remote control β€” you type commands and the API Server executes them. Every kubectl command goes through the API Server. Getting Information
  • πŸ“ YAML Manifests β€” Hands-On β€” In Kubernetes, everything is described as YAML files called "manifests." Think of YAML as a letter you write to Kubernetes: "Dear K8s, please run 3 copies of my app, connect them to port 8080, and make sure they are always healthy." YAML in
  • πŸ”— Kubernetes Ecosystem & Tool Relationships β€” Kubernetes is not a standalone tool β€” it is the hub of a modern DevOps ecosystem. Understanding how K8s connects with Docker, Jenkins, Kafka, and Helm is what separates a basic K8s user from a Senior DevOps/QA Engineer. These tools form a complete software del
  • πŸ› οΈ Real-World Kubernetes β€” Hands-On β€” This section walks you through a complete real-world scenario: deploying a Spring Boot REST API to Kubernetes from scratch. Follow every command step-by-step. By the end you will have a running, scaled, production-grade deployment β€” not just theory. Scenario: