The Real Reason Your Kubernetes Pods Get OOMKilled

Most engineers know Docker limits CPU and memory. Very few know HOW. The answer is Linux Cgroups (Control Groups), the kernel primitive that powers resource management in Docker and Kubernetes. In this video, we go from basics to a real working container with limits applied using pure Linux (no Docker magic): 👉 Why Linux has NO default resource limits 👉 How cgroups control CPU (throttling explained) 👉 Why memory limits trigger OOM kills 👉 cgroups v1 vs v2 (what actually changed) 👉 Applying limits to a real container using unshare What you'll understand: What happens when a Kubernetes pod gets OOMKilled How Docker enforces CPU & memory limits internally Why containers are NOT safe without cgroups ▬▬▬▬▬▬▬ Timestamps ▬▬▬▬▬▬▬ 00:00 - Intro (Why Containers Need Resource Control) 00:58 - The Problem: No CPU & Memory Limits 01:47 - How Linux Solves This (Cgroups Explained) 02:42 - Cgroups v1 Problems (Why It Failed) 03:13 - Cgroups v2 Improvements (Unified System) 03:26 - Live Demo: CPU & Memory Limits with Cgroups 08:05 - Testing CPU Throttling & Memory Kill 09:28 - Apply Cgroups to a Real Container (unshare) 11:45 - Outro (How Containers Actually Work) & Whats Next Watch Related Playlists: Kubernetes Gateway API:    • Kubernetes Gateway API Zero to Hero (With ...   Kubernetes:    • Kubernetes Basics to Advance   Github Actions:    • GitHub Actions: Basics to Advanced   Ansible:    • Ansible Automation: From Beginner to Advan...   AWX:    • AWX Tutorials: Beginner to Advanced Guide   AI:    • AI   ▬▬▬▬▬▬ Connect with me ▬▬▬▬▬▬ LinkedIn:   / kumar-nikhil811   Website: https://techinik.com Medium:   / kumarnikhil811   #docker #kubernetes #linux #devops #cgroups #containerization

Docker Networking Tutorial: Build Container Networks From Scratch (Linux Namespaces)
▶︎

Docker Networking Tutorial: Build Container Networks From Scratch (Linux Namespaces)

An Introduction to Gateway API for Beginners in Kubernetes
▶︎

An Introduction to Gateway API for Beginners in Kubernetes

Docker Explained for Absolute Beginners [2026]
▶︎

Docker Explained for Absolute Beginners [2026]

What The Heck Are Kubernetes Resources, CRs, CRDs, Operators, etc.?
▶︎

What The Heck Are Kubernetes Resources, CRs, CRDs, Operators, etc.?

Android 17 sucks. So I put Linux on a phone.
▶︎

Android 17 sucks. So I put Linux on a phone.

20% of Linux Commands You'll Use 80% of the Time (Real-World Example)
▶︎

20% of Linux Commands You'll Use 80% of the Time (Real-World Example)

Docker Root Switch Explained: The Linux Kernel Secret Behind Container Security
▶︎

Docker Root Switch Explained: The Linux Kernel Secret Behind Container Security

Tetragon Deep Dive Explained | eBPF Security, Runtime Observability & Tracing Policies in Kubernetes
▶︎

Tetragon Deep Dive Explained | eBPF Security, Runtime Observability & Tracing Policies in Kubernetes

Docker Storage Deep Dive: How OverlayFS Builds Container Filesystems
▶︎

Docker Storage Deep Dive: How OverlayFS Builds Container Filesystems

Building a simple Talos Linux Kubernetes Cluster with the Tailscale K8s Operator
▶︎

Building a simple Talos Linux Kubernetes Cluster with the Tailscale K8s Operator

What is Helm in Kubernetes? Helm and Helm Charts explained  | Kubernetes Tutorial 23
▶︎

What is Helm in Kubernetes? Helm and Helm Charts explained | Kubernetes Tutorial 23

The Local AI Hardware Mistake Everyone Makes
▶︎

The Local AI Hardware Mistake Everyone Makes

Docker Core Concepts Every Developer Should Know
▶︎

Docker Core Concepts Every Developer Should Know

MIT Just Revealed the AI Bubble's Fatal Flaw
▶︎

MIT Just Revealed the AI Bubble's Fatal Flaw

Kubernetes Zero to Hero: The Complete Beginner’s Guide (2025 Edition)
▶︎

Kubernetes Zero to Hero: The Complete Beginner’s Guide (2025 Edition)

Doom Emacs: Why I Chose It Over Vim and Never Looked Back
▶︎

Doom Emacs: Why I Chose It Over Vim and Never Looked Back

The World's Most Important Machine
▶︎

The World's Most Important Machine

Docker Crash Course for Absolute Beginners [NEW]
▶︎

Docker Crash Course for Absolute Beginners [NEW]

See How a 453kg Giant Bluefin Tuna Is Flawlessly Carved in Seconds
▶︎

See How a 453kg Giant Bluefin Tuna Is Flawlessly Carved in Seconds

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!
▶︎

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!