Posts

Kubernetes - Syllabus

  MASTER TABLE OF CONTENTS BOOK STRUCTURE · 10 PARTS · 45 CHAPTERS PART I — KUBERNETES FUNDAMENTALS Chapter 01 — Introduction to Kubernetes 1.1 What is Kubernetes? 1.2 Why Kubernetes? 1.3 Container Orchestration 1.4 Kubernetes vs Docker 1.5 Kubernetes vs Docker Swarm 1.6 Containers vs Virtual Machines 1.7 Kubernetes Use Cases 1.8 Kubernetes Advantages and Limitations 1.9 Declarative vs Imperative Approach 1.10 Desired State vs Actual State Chapter 02 — Kubernetes Core Concepts 2.1 Kubernetes Cluster 2.2 Control Plane 2.3 Worker Nodes 2.4 Kubernetes Objects 2.5 Resources and Manifests 2.6 Labels and Selectors 2.7 Namespaces 2.8 Annotations 2.9 Reconciliation Loop 2.10 Self-Healing Architecture 2.11 Kubernetes API 2.12 kubectl Fundamentals PART II — KUBERNETES ARCHITECTURE Chapter 03 — Control Plane Architecture 3.1 API Server 3.2 etcd 3.3 Scheduler 3.4 Controller Manager 3.5 Cloud Controller Manager 3.6 Admission Controllers 3.7 Mutating Admission Webhooks 3.8 Validating Admission W...

Lesson -3 : ETCD

etcd (often written as ETCD ) is a critical piece of modern distributed systems—especially in Kubernetes. It’s not a container tool itself, but a reliable data store that keeps the entire system’s state consistent 📦 What is etcd? etcd is a distributed key–value store designed for: Reliability Consistency Fault tolerance It stores data in simple key → value pairs , but with strong guarantees that all nodes see the same data.

Lesson-1 - Basic -- Kubernetes:

  What is Kubernetes? Answer : Kubernetes is an open-source container orchestration platform that automates deploying, scaling, and managing containerized applications. It provides tools for managing microservices, load balancing, automated scaling, and self-healing in production environments. What are the main components of Kubernetes? Answer : Kubernetes consists of the following main components: Master Node : Controls the Kubernetes cluster, running the API server, scheduler, and controller manager. Worker Nodes : Hosts the containers (pods), including the container runtime (like Docker), kubelet, and kube-proxy. API Server : Exposes the Kubernetes API, which is the entry point for interactions with the cluster. Scheduler : Assigns workloads (pods) to nodes based on resource availability. Controller Manager : Ensures the desired state of the cluster (e.g., ensures that the number of pods running is the same as desired). Etcd : A distributed key-value stor...

Lesson -2 : Docker & Container D | ctr | nerdctl | crictl

The topic Docker vs containerd is really about understanding how modern container systems are structured. Docker used to be the “all-in-one” tool, while containerd is a lower-level component that Docker itself now relies on. 🐳 What is Docker? Docker is a full platform for building, running, and managing containers. Think of Docker as a complete toolkit : Build container images ( Dockerfile ) Run containers ( docker run ) Manage networks, volumes, etc. CLI + API + ecosystem It’s designed to be developer-friendly and easy to use. ⚙️ What is containerd? containerd is a core container runtime . It handles the essential low-level tasks: Pulling images Managing container lifecycle (start, stop) Handling storage and execution It does not include: Image building tools Fancy CLI for developers High-level orchestration features 🧩 Relationship Between Them Originally, Docker had its own runtime. Later, Docker split things up and now: Docker → uses containerd int...

Containerd

  Working with Containerd Containerd is a high-level container runtime that provides the basic functionalities required to run and manage containers. It is more lightweight and low-level compared to Docker and is often used by container orchestration systems like Kubernetes. Containerd is capable of handling tasks like image pulling, container execution, and managing the container lifecycle, but it doesn't include higher-level features like orchestration or image building. If you're looking to work with containerd , the main interaction is through its gRPC API , although there are CLI tools that provide a more user-friendly way to interact with it. Basic Concepts of Containerd Containerd Daemon : The containerd daemon ( containerd.service or containerd process) is the core service that runs on your machine and handles container management tasks like running containers and pulling images. Containers : Containerd handles the lifecycle of containers, including crea...