Active Nerds
Learning Paths
Infrastructure & Deployment

Kubernetes

Declarative cluster state: how the control plane reconciles desired vs. actual, across pods, deployments, and services.

69 modules~14 hours totalBeginner–Advanced

Prerequisite Note

Assumes Docker fundamentals — container images, volumes, and Compose.

View prerequisite path (docker)

Interactive Question & Article Stream

Browse questions with quick answers, filter by level or domain, and expand full articles on demand in a continuous reading view.

Start Reading Stream

Beginner Modules(0/25)

Kubernetes Architecture: Why Container Orchestration is Essential

Article

Why is container orchestration essential when running containerized applications at scale, and what core problems does Kubernetes solve compared to manual container management?

2 min+10 XP

Manual Operations vs. Kubernetes: Problems Automated Orchestration Solves

Article

What specific operational problems arise when managing containers manually across multiple hosts, and how does Kubernetes automate self-healing, scaling, and service discovery?

2 min+10 XP

Containers vs. Virtual Machines: Isolation Mechanisms at the Linux Kernel Level

Article

Explain the architecture, failure modes, and operational best practices for Containers vs. Virtual Machines: Isolation Mechanisms at the Linux Kernel Level in production Kubernetes environments.

3 min+10 XP

Docker vs. Kubernetes: Runtime Engines vs. Cluster Orchestrators

Article

Explain the architecture, failure modes, and operational best practices for Docker vs. Kubernetes: Runtime Engines vs. Cluster Orchestrators in production Kubernetes environments.

2 min+10 XP

Control Plane vs. Worker Nodes: Key Architecture Components of a Kubernetes Cluster

Article

Explain the architecture, failure modes, and operational best practices for Control Plane vs. Worker Nodes: Key Architecture Components of a Kubernetes Cluster in production Kubernetes environments.

5 min+10 XP

etcd Architecture: Distributed Key-Value Store for Kubernetes Cluster State

Article

Explain the architecture, failure modes, and operational best practices for etcd Architecture: Distributed Key-Value Store for Kubernetes Cluster State in production Kubernetes environments.

3 min+10 XP

Understanding Pods: Why Kubernetes Groups Containers as the Smallest Deployable Unit

Article

Why does Kubernetes use a Pod—rather than a single container—as its smallest deployable unit, and how do containers inside the same Pod share network and storage namespaces?

4 min+10 XP

Control Plane vs. Worker Nodes: Responsibilities and Component Breakdown

Article

Explain the architecture, failure modes, and operational best practices for Control Plane vs. Worker Nodes: Responsibilities and Component Breakdown in production Kubernetes environments.

3 min+10 XP

Inside kubectl apply: Execution Flow from API Server to Container Runtime

Article

What happens under the hood during a `kubectl apply` request from client-side YAML parsing, OpenAPI validation, authentication/authorization, admission webhooks, to etcd persistence?

4 min+10 XP

Kubernetes Namespaces: Logical Cluster Isolation and Resource Scoping

Article

How do Kubernetes Namespaces provide logical cluster isolation and resource scoping, and what are the limitations of namespaces regarding security and network boundary isolation?

3 min+10 XP

Essential kubectl Commands: Operations and Debugging Cheat Sheet

Article

Explain the architecture, failure modes, and operational best practices for Essential kubectl Commands: Operations and Debugging Cheat Sheet in production Kubernetes environments.

5 min+10 XP

Imperative vs. Declarative Management: Infrastructure as Code with Kubernetes Manifests

Article

What are the fundamental differences between imperative `kubectl` commands and declarative `kubectl apply` manifest management, and why is declarative management required for Production Infrastructure as Code?

3 min+10 XP

Dry-Run Validation: Client-Side vs. Server-Side Mutation Testing

Article

Explain the architecture, failure modes, and operational best practices for Dry-Run Validation: Client-Side vs. Server-Side Mutation Testing in production Kubernetes environments.

2 min+10 XP

Anatomy of a Kubernetes Manifest: The Four Essential Structure Fields

Article

Explain the architecture, failure modes, and operational best practices for Anatomy of a Kubernetes Manifest: The Four Essential Structure Fields in production Kubernetes environments.

3 min+10 XP

Labels vs. Annotations: Resource Selectors vs. Operational Metadata

Article

What is the structural and functional difference between Labels and Annotations in Kubernetes, and why should operational metadata never be used in label selectors?

3 min+10 XP

Pod Lifecycle States: Phase Transitions from Pending to Running and Termination

Article

What are the exact phase transitions a Pod undergoes from Pending to Running or Failed, and what conditions cause a Pod to remain stuck in Pending or CrashLoopBackOff?

4 min+10 XP

Init Containers: Pre-initialization, Dependency Waiting, and Setup Execution

Article

How do Init Containers execute sequentially before main application containers start, and how can they be used for dependency waiting, schema migrations, and secure credential setup?

3 min+10 XP

Deployments vs. ReplicaSets: Declarative Scaling and Pod Template Management

Article

Explain the architecture, failure modes, and operational best practices for Deployments vs. ReplicaSets: Declarative Scaling and Pod Template Management in production Kubernetes environments.

3 min+10 XP

Kubernetes Deployment Spec: Pod Templates, Replicas, and Rollout Controls

Article

What key fields inside a Deployment specification control replica count, update strategy, and pod revision history, and how does a Deployment controller manage underlying ReplicaSets?

4 min+10 XP

Rolling Update Strategy: Zero-Downtime Deployment Control with maxSurge and maxUnavailable

Article

How do `maxSurge` and `maxUnavailable` parameters control rolling update rollouts, and how do you configure them to guarantee zero-downtime deployments under heavy traffic?

4 min+10 XP

Kubernetes Services: Stable Networking and Service Discovery for Transient Pods

Article

How do Kubernetes Services provide stable IP addresses and DNS endpoints for transient Pods, and how does kube-proxy update iptables/IPVS rules when Pod endpoints change?

4 min+10 XP

ClusterIP vs. NodePort vs. LoadBalancer vs. ExternalName: Service Type Selection

Article

What are the functional differences and use cases among ClusterIP, NodePort, LoadBalancer, and ExternalName service types, and how does packet routing work for each?

4 min+10 XP

ConfigMaps: Decoupling Application Configuration from Container Images

Article

Explain the architecture, failure modes, and operational best practices for ConfigMaps: Decoupling Application Configuration from Container Images in production Kubernetes environments.

3 min+10 XP

Kubernetes Secrets vs. ConfigMaps: Sensitive Data Storage and Base64 Limitations

Article

What are the technical differences between Secrets and ConfigMaps, why is Base64 encoding insufficient for secret security, and how should sensitive data be encrypted at rest in etcd?

4 min+10 XP

Kubernetes Self-Healing Mechanics: Automatic Restarts and Pod Rescheduling

Article

How does the Kubelet enforce self-healing mechanics through container restart policies and health probes, and how does the control plane reschedule Pods when a node dies?

3 min+10 XP

Intermediate Modules(0/16)

Production Deployment Design: Stateless Scalable Web Applications with HPA

Article

How do you architect a production-ready stateless web application deployment in Kubernetes combining Deployments, HPA, PodDisruptionBudgets, and anti-affinity rules for high availability?

8 min+15 XP

Sidecar, Ambassador, and Adapter Patterns: Advanced Multi-Container Pod Designs

Article

How do the Sidecar, Ambassador, and Adapter multi-container Pod patterns enhance application functionality, and when should you use each pattern in production?

4 min+15 XP

Sidecar, Ambassador, and Adapter Patterns: Advanced Multi-Container Pod Designs

Article

What are the key architectural differences between Sidecar, Ambassador, and Adapter pod patterns, and how do they extend containerized workloads without modifying primary application code?

4 min+15 XP

Debugging Pending Pods: Systematic Troubleshooting for Scheduling Blocks

Article

Explain the architecture, failure modes, and operational best practices for Debugging Pending Pods: Systematic Troubleshooting for Scheduling Blocks in production Kubernetes environments.

5 min+15 XP

CrashLoopBackOff Troubleshooting: Root Cause Analysis for Application Container Crashes

Article

Explain the architecture, failure modes, and operational best practices for CrashLoopBackOff Troubleshooting: Root Cause Analysis for Application Container Crashes in production Kubernetes environments.

5 min+15 XP

OOMKilled Prevention: Container Memory Limits, Cgroups, and Linux OOM Killer

Article

What kernel mechanisms trigger an OOMKilled exit status for a container, and how do you configure container memory requests and cgroups limits to prevent out-of-memory container crashes?

4 min+15 XP

Kubernetes Ingress Controllers: Layer 7 HTTP Routing and SSL/TLS Termination

Article

How does an Ingress Controller manage Layer 7 HTTP/HTTPS traffic routing and SSL/TLS termination, and how does it differ from a NodePort or LoadBalancer Service?

5 min+15 XP

CoreDNS Architecture: In-Cluster DNS Resolution and Service Record Lookup

Article

Explain the architecture, failure modes, and operational best practices for CoreDNS Architecture: In-Cluster DNS Resolution and Service Record Lookup in production Kubernetes environments.

4 min+15 XP

Storage Persistence: PersistentVolumes, PersistentVolumeClaims, and StorageClasses

Article

How do PersistentVolumes, PersistentVolumeClaims, and StorageClasses decouple storage consumption from underlying cloud storage infrastructure in Kubernetes?

5 min+15 XP

Resource Requests vs. Limits: CPU/Memory Scheduling and Throttling Policies

Article

What is the operational difference between CPU/memory resource requests and limits, and how does Kubernetes use requests for scheduling while using limits to enforce throttling and OOM eviction?

4 min+15 XP

Kubernetes QoS Classes: Guaranteed, Burstable, and BestEffort Pod Eviction Priorities

Article

How does Kubernetes assign Guaranteed, Burstable, and BestEffort Quality of Service (QoS) classes to Pods, and how does the kernel OOM killer use `oom_score_adj` to evict Pods during resource scarcity?

4 min+15 XP

Liveness, Readiness, and Startup Probes: Health Check Configurations

Article

How do Liveness, Readiness, and Startup probes differ in purpose and behavior, and how do incorrect probe configurations cause cascading deployment failures or unnecessary restarts?

5 min+15 XP

StatefulSets vs. Deployments: Managing Stateful Applications with Stable Identities

Article

Why are standard Deployments unsuitable for stateful applications like database clusters, and how do StatefulSets provide stable network identities, ordinal indices, and persistent storage bindings?

5 min+15 XP

DaemonSets: Running Node-Level Daemon Agents for Logging and Monitoring

Article

Explain the architecture, failure modes, and operational best practices for DaemonSets: Running Node-Level Daemon Agents for Logging and Monitoring in production Kubernetes environments.

3 min+15 XP

Kubernetes RBAC: Implementing Roles, ClusterRoles, and Bindings for Granular Security

Article

How do Role, ClusterRole, RoleBinding, and ClusterRoleBinding resources interact to enforce least-privilege authorization across namespaces and cluster-wide resources?

6 min+15 XP

ServiceAccounts vs. User Accounts: Identity, Token Auth, and Pod Authorization

Article

What are the key architectural differences between ServiceAccounts and User Accounts in Kubernetes, and how does token projection work for Pod service account authentication?

4 min+15 XP

Advanced Modules(0/18)

GitLab CI/CD Integration: Automated Container Builds and Manifest Deployments

Article

How do you configure a GitLab CI/CD pipeline to build container images, update Kubernetes manifests, and execute secure deployments to a Kubernetes cluster using ServiceAccounts?

8 min+20 XP

GitOps Workflow: Declarative Infrastructure Management with ArgoCD and Flux

Article

How does the GitOps pull-based architecture (using ArgoCD or Flux) differ from traditional push-based CI/CD pipelines, and how does it detect and reconcile cluster state drift automatically?

5 min+20 XP

NetworkPolicies: Micro-Segmentation and Pod Traffic Filtering with Calico or Cilium

Article

How do Kubernetes NetworkPolicies enforce micro-segmentation and pod traffic isolation, and how do CNI plugins like Calico or Cilium implement these rules at the kernel network layer?

6 min+20 XP

Kubernetes Disaster Recovery: Cluster Backup, etcd Snapshots, and Velero

Article

How do you design a comprehensive disaster recovery strategy for Kubernetes using etcd snapshots for control plane state and Velero for persistent volume backups?

7 min+20 XP

Zero-Downtime Cluster Upgrades: Master Control Plane and Worker Maintenance

Article

What step-by-step workflow guarantees zero downtime when upgrading worker nodes and control plane components using `kubeadm`, `cordon`, and `drain`?

6 min+20 XP

Kubernetes Upgrade Strategy: Architecture & Implementation

Article

Your company runs a production Kubernetes cluster on v1.26. The security team has mandated an upgrade to v1.29 due to a CVE. You have 40 nodes, stateful workloads, and a 99.9% uptime SLA. Walk through your complete upgrade strategy.

25 min+20 XP

CI/CD Pipeline Security Scanning & Compliance: Architecture & Implementation

Article

Your organization must comply with SOC 2 and PCI-DSS. The security team requires that no container image with a Critical or High CVE reaches production, all Kubernetes manifests must comply with the CIS Kubernetes Benchmark, and secrets must never appear in source code or image layers. Design and implement a complete DevSecOps pipeline.

30 min+20 XP

Zero-Downtime Deployments: Architecture & Implementation

Article

You manage a critical payment processing API. It handles 10,000 requests/minute with no tolerance for dropped connections. How do you implement zero-downtime deployments?

22 min+20 XP

Blue/Green and Canary Deployments with Argo Rollouts: Architecture & Implementation

Article

Your e-commerce platform releases features weekly. A bad release last quarter caused 30 minutes of downtime and lost $200K in revenue. Leadership now requires that all releases be validated against 5% of live traffic before full rollout, with automatic rollback if error rates exceed 1%. How do you implement this?

27 min+20 XP

Cluster Resource Exhaustion: Monitoring and Scaling Strategy

Article

Your cluster is running out of resources. Pods are stuck in `Pending` state, nodes are at 90% CPU, and the on-call engineer is getting paged at 2 AM. What monitoring and scaling strategies do you implement to prevent this and respond automatically?

22 min+20 XP

Exposed Secrets in ConfigMap: Incident Response

Article

A developer accidentally committed a database password and an AWS access key directly into a ConfigMap, which was then applied to the production cluster and pushed to a public GitHub repository. You're the on-call engineer. Walk through your complete incident response plan.

22 min+20 XP

Advanced RBAC Design for Multi-Team Organization: Architecture & Implementation

Article

Your company has three engineering teams: Frontend (deploys React apps), Backend (deploys APIs and workers), and Database (manages PostgreSQL and Redis). Each team has developers, leads, and CI/CD service accounts. Design a complete RBAC system where teams can only access their own namespaces, leads can approve deployments, CI/CD can deploy but not delete, and platform engineers have cluster-wide admin access with audit trails.

35 min+20 XP

StatefulSet Design for Database Pods: Architecture & Implementation

Article

You need to ensure a PostgreSQL database Pod maintains state across cluster updates, node failures, and rolling restarts. Design a production-grade StatefulSet with proper storage, backup, high availability, and operational runbook.

30 min+20 XP

Istio Traffic Management and Circuit Breaking: Architecture & Implementation

Article

Your payment service is experiencing cascading failures. When the downstream fraud-detection service becomes slow, payment service threads pile up waiting for responses, eventually exhausting the connection pool and causing payment service itself to fail. Implement circuit breaking, retry logic, timeout policies, and traffic mirroring using Istio to make this system resilient without changing application code.

35 min+20 XP

Advanced Pod Scheduling: Affinity, Taints, and Topology

Article

You have a cluster with three node types: GPU nodes (expensive), high-memory nodes, and standard nodes. ML training jobs must run only on GPU nodes, memory-intensive analytics must prefer high-memory nodes, and web frontends must be spread across standard nodes in different AZs. Also, the GPU nodes should not accept any non-ML workloads. Implement this scheduling strategy.

30 min+20 XP

What is the Kubernetes API Extension Model?: Architecture & Implementation

Article

How does the Kubernetes API extension model work using Custom Resource Definitions (CRDs) and custom controllers, and how does API aggregation differ from CRD registration?

8 min+20 XP

How Do Validating vs. Mutating Admission Webhooks Differ?

Article

How do Mutating and Validating Admission Webhooks differ in execution order and purpose during an API server request, and how do you prevent webhooks from blocking cluster operations if they fail?

10 min+20 XP

How Does etcd Store Kubernetes State Internally?: Architecture & Implementation

Article

How does etcd store Kubernetes cluster state internally using key-value MVCC (Multi-Version Concurrency Control), and how does the API server handle bbolt database compaction and revision watch streams?

8 min+20 XP
Next Recommended Learning Path

Gen AI

What an LLM actually does: mechanism over hype — tokens, attention mechanisms, embeddings, RAG architectures, and evaluation.

Explore Gen AI Path