KUBERNETESNOTES

A comprehensive collection of Kubernetes concepts, explained in simple words with clear diagrams and examples. Perfect for quick revision and interview preparation!

Kubernetes Core Concepts Pods & Containers Clusters &Nodes Deployments &Services Security &Best Practices
What's Inside?
  • Core Concepts
  • Architecture
  • Pods and Deployments
  • Services and Ingress
  • Config and Storage
  • GitOps and Certificates
  • Autoscaling, Gateway API
  • Serverless, Identity
  • Observability
  • Controllers, Operators, RBAC
Why This Notes?
  • Easy to understand
  • Well-structured
  • Interview focused
  • Quick revision
  • Handwritten style for better retention
“Learn, Deploy, and Scale with Kubernetes!”

Start here

Contents

How it plugs in Git repoFlux CD v2 syncs it API serverRBAC, admission, CRDs controllers and operators cert-managerExternal Secrets CloudNativePGKEDA, metrics Gateway, MetalLBSPIRE, OTel Your workloads

Part 2.Beyond Core

GitOps and delivery
CI and builds
Certificates and secrets
Data
Cloud infrastructure
Scaling and metrics
Workload identity
Networking and traffic
Serverless

Part 2.Beyond Core (continued)

Observability

Part 3.Advanced Concepts

Under the hood: the machinery that core objects and every add-on rely on, grouped by topic.

Extending the API
API machinery
Security
Where each topic fits CI: build, sign, attestImage Signing, SBOM and Provenance kubectl apply, or FluxGitOps with Flux API server who are you, may you ?OIDC Auth, RBAC apply: merge, own fieldsAPI Machinery mutating admissionAdmission schema checkCRDs validating admissionAdmission, Pod Security etcd saves the object watch control loops compare, act, repeatControllers app know-how in codeOperators build and upgrade clustersCluster API owners and finalizersFinalizers and GC pick a node and devicesScheduling, DRA, Volume Topology attach and mount its volumesCSI Drivers, Volume Operations pull and check the imageImages and Pulls, Image Policy kubelet runs the Pod traffic reaches the PodPod Networking, Service DataplaneCluster DNS, Network Policy

Top to bottom is the path of one change. Blue names are the topics that explain each step.

In short : Part 2 ends with observability: metrics, alerts, logs, events, traces and profiles. Part 3 starts with the API itself: how it is extended, how each request is checked, and who may do what.

Part 3.Advanced Concepts (continued)

Who you are and what you trust, trusted images, where Pods run and how they are sized and scaled, then the network and storage under every Pod.

Identity and trust
Supply chain security
Scheduling
Resources and autoscaling
Networking internals
Storage internals
One Pod, end to end name to Service IPCluster DNS Service IP to a PodService Dataplane allowed ?Network Policy a request comes in Pod gets an IP and a routePod Networking its PVC provision in the right zoneVolume Topology attach, stage, publishCSI Drivers later resize, detachVolume Operations snapshot, backupVolume Snapshots

Top half: traffic on its way to the Pod. Bottom half: the life of its volume.

In short : Part 3 continues under the hood: identity and trust, trusted images, placement, sizing and autoscaling, then the network and storage under every Pod.

Part 3.Advanced Concepts (continued)

Cluster management
GitOps

Tip.Start from a question

Start with Part 1. Then read each topic's In short first.

SituationRead
A Pod cannot reach a Service by nameCluster DNS, Service Dataplane
Only some Pods should reach a databaseNetwork Policy
A Pod is Pending: its volume is in another zoneVolume Topology
A volume is stuck attaching or detachingVolume Operations, CSI Drivers
You need yesterday's data backSnapshots and Backup
Keep a password in Git safelySecrets in Git with SOPS, External Secrets
A GitHub Actions job waits, no runner picks it upARC
A Gitea runner rollout cancels running jobsGitea Runners
CI must build images, but privileged Pods are bannedImage Builds, Pod Security
Only signed images may runImage Signing, Image Policy
An object will not deleteFinalizers and GC
Two tools fight over the same fieldAPI Machinery
Pods need GPUs or other devicesDRA, Scheduling
A ServiceMonitor is ignored, no targets appearPrometheus
Too many alert messages, or none at allAlertmanager
Logs are rejected or slow to queryLoki and Alloy
A Pod failed an hour ago and its Events are goneEvents
One request is slow, but which service and which line ?Tempo, Pyroscope
kubectl should log you in with your company accountOIDC Auth, Keycloak
Every app asks for its own passwordKeycloak
A Pod needs a database password that expiresOpenBao, External Secrets
Internal TLS fails with "unknown authority"Private PKI
Each Pod needs its own short-lived certificatePod Certificates, SPIRE
A container is OOMKilled, or slow under a CPU limitRequests and Limits
A running Pod needs more CPU, without a restartIn-Place Resize
Nobody knows what requests to setVPA, Requests and Limits
The HPA scales too late, too often, or not at allHPA in Depth
In short : Part 1 teaches the core of Kubernetes in 13 topics.
Part 2 adds 29 topics, grouped by what they do.
Part 3 looks under the hood, with 34 topics on how it all fits together.