# Kubernetes

Kubernetes lets you describe the state your containerized workloads should be in — how many replicas, what image, what storage, what network access — and continuously reconciles the real cluster toward that state, forever, without you running a command every time something drifts. This is a hands-on guide to using it well: understanding the architecture underneath a `kubectl apply`, writing production-grade workloads, securing and observing a cluster, debugging what breaks, and operating OpenShift where that's the platform in front of you.

It's built to work two ways: read it start to finish as a course, or jump straight to the one page that answers what you need right now.

## Start Here, Based on Where You Are

| You are... | Start at |
| --- | --- |
| New to Kubernetes entirely | [Getting Started](<https://computecentral.in/kubernetes/getting-started/index.md>) |
| Comfortable with the basics, want the daily-driver objects | [Core Concepts](<https://computecentral.in/kubernetes/core-concepts/index.md>) |
| Running real workloads, want to tune rollouts and scheduling | [Workloads & Scheduling](<https://computecentral.in/kubernetes/workloads-and-scheduling/index.md>) |
| Exposing services, debugging traffic | [Networking](<https://computecentral.in/kubernetes/networking/index.md>) |
| Working with stateful apps and volumes | [Storage](<https://computecentral.in/kubernetes/storage/index.md>) |
| Managing app config, Secrets, or packaging with Helm/Kustomize | [Configuration & Packaging](<https://computecentral.in/kubernetes/configuration-and-packaging/index.md>) |
| Locking down a cluster | [Security](<https://computecentral.in/kubernetes/security/index.md>) |
| Wiring up probes, logs, and metrics | [Observability & Health](<https://computecentral.in/kubernetes/observability/index.md>) |
| Running the control plane yourself | [Cluster Administration](<https://computecentral.in/kubernetes/cluster-administration/index.md>) |
| Building a deployment pipeline or adopting GitOps | [CI/CD & GitOps](<https://computecentral.in/kubernetes/cicd-and-gitops/index.md>) |
| Running Kubernetes in production at scale | [Production Engineering](<https://computecentral.in/kubernetes/production-engineering/index.md>) |
| Serving LLMs on GPUs or running AI agents | [AI Workloads](<https://computecentral.in/kubernetes/ai-workloads/index.md>) |
| Working on Red Hat OpenShift specifically | [OpenShift](<https://computecentral.in/kubernetes/openshift/index.md>) |
| Learning by doing, on a local cluster | [Labs](<https://computecentral.in/kubernetes/labs/index.md>) |
| Wanting full worked examples, failure paths included | [Case Studies](<https://computecentral.in/kubernetes/case-studies/index.md>) |
| Something's broken right now | [Troubleshooting](<https://computecentral.in/kubernetes/troubleshooting/index.md>) |
| Prepping for a Kubernetes or DevOps interview | [Interview Preparation](<https://computecentral.in/kubernetes/interview-prep/index.md>) |
| Already know Kubernetes, need a fast lookup | [Quick Reference](<https://computecentral.in/kubernetes/quick-reference/index.md>) |

## The Learning Path

```
flowchart TD
    A[Getting Started] --> B[Core Concepts]
    B --> C[Workloads & Scheduling /\nNetworking / Storage]
    C --> D[Configuration & Packaging /\nSecurity / Observability]
    D --> E[Cluster Administration /\nCI/CD & GitOps]
    E --> F[Production Engineering /\nOpenShift]
    F --> G[Labs & Case Studies]
    G --> H[Interview Preparation]
```

## Learn by Building

Each project uses only what the previous ones already taught you. Skip ahead if you're already past a stage.

1. **Deploy and expose your first app** — [Your First Deployment](<https://computecentral.in/kubernetes/getting-started/04-your-first-deployment/index.md>)
2. **Roll out a change with zero dropped requests** — [Deployment Strategies](<https://computecentral.in/kubernetes/workloads-and-scheduling/01-deployment-strategies/index.md>), [Case Study: Rolling Deployment With Zero Downtime](<https://computecentral.in/kubernetes/case-studies/01-rolling-deployment-with-zero-downtime/index.md>)
3. **Route real traffic in with TLS** — [Ingress and Ingress Controllers](<https://computecentral.in/kubernetes/networking/03-ingress-and-ingress-controllers/index.md>)
4. **Give a database stable storage** — [StatefulSets](<https://computecentral.in/kubernetes/workloads-and-scheduling/02-statefulsets/index.md>), [StatefulSet Storage Patterns](<https://computecentral.in/kubernetes/storage/04-statefulset-storage-patterns/index.md>)
5. **Package it as a Helm chart** — [Helm Fundamentals and Writing Charts](<https://computecentral.in/kubernetes/configuration-and-packaging/04-helm-fundamentals-and-writing-charts/index.md>)
6. **Isolate a new team in its own namespace** — [Case Study: Multi-Tenant Namespace Setup](<https://computecentral.in/kubernetes/case-studies/03-multi-tenant-namespace-setup/index.md>)
7. **Lock down access with least privilege** — [RBAC](<https://computecentral.in/kubernetes/security/02-rbac/index.md>)
8. **Scale it automatically under load** — [Autoscaling](<https://computecentral.in/kubernetes/workloads-and-scheduling/06-autoscaling/index.md>), [Case Study: Autoscaling Under Load](<https://computecentral.in/kubernetes/case-studies/04-autoscaling-under-load/index.md>)
9. **Adopt GitOps instead of pushing `kubectl apply` by hand** — [GitOps With ArgoCD and Flux](<https://computecentral.in/kubernetes/cicd-and-gitops/04-gitops-with-argocd-and-flux/index.md>)
10. **Practice debugging a real incident** — [Case Study: Debugging a CrashLoopBackOff Incident](<https://computecentral.in/kubernetes/case-studies/06-debugging-a-crashloopbackoff-incident/index.md>)
11. **Run the production readiness checklist against it** — [Production Readiness Checklist](<https://computecentral.in/kubernetes/production-engineering/05-production-readiness-checklist/index.md>)
12. **Learn from other people's outages** — [Kubernetes Outages: 11 Real Postmortems](<https://computecentral.in/kubernetes/case-studies/07-real-world-outages-and-lessons/index.md>)

## Interactive Tools

Try your own numbers against the same rules the controllers use:

- [Rolling update calculator](<https://computecentral.in/kubernetes/workloads-and-scheduling/01-deployment-strategies/index.md#rollingupdate-tuned>) — what `maxSurge` and `maxUnavailable` resolve to, step by step
- [HPA replica calculator](<https://computecentral.in/kubernetes/workloads-and-scheduling/06-autoscaling/index.md#horizontalpodautoscaler-autoscalingv2>) — desired replicas, the tolerance band, and scaling speed limits
- [Forbidden error to RBAC](<https://computecentral.in/kubernetes/security/02-rbac/index.md#reading-a-forbidden-error>) — paste a `Forbidden` error and get the least-privilege Role, binding, and `kubectl auth can-i` check
- [Resource quantity converter](<https://computecentral.in/kubernetes/quick-reference/05-resource-units-and-ports-cheat-sheet/index.md>) — see what `500m`, `512Mi`, or `1G` really mean, and catch `512m` of memory

## What Changed Recently

Kubernetes moves fast, and a lot of tutorials online still teach patterns that no longer apply. The changes from the last few releases that most affect day-to-day work, and where each is covered:

| Change | What it means for you | Covered in |
| --- | --- | --- |
| **HPA tolerance per object** stable, **HPA scale to zero** beta (v1.37) | Tune flapping per HPA; scale idle workloads to zero on object or external metrics | [Autoscaling](<https://computecentral.in/kubernetes/workloads-and-scheduling/06-autoscaling/index.md#what-most-engineers-miss>) |
| **ingress-nginx retired** (March 2026) | No more security fixes; move to Gateway API or another maintained controller | [Gateway API](<https://computecentral.in/kubernetes/networking/07-gateway-api/index.md>) |
| **Inference routing moved to llm-d** (2026) | `InferencePool` is GA; the endpoint picker and `InferenceObjective` now come from the llm-d router, so 2025 tutorials are out of date | [Inference Routing](<https://computecentral.in/kubernetes/ai-workloads/03-inference-routing-with-gateway-api/index.md>) |
| **Dynamic Resource Allocation** stable (v1.34) | Request devices such as GPUs by attributes through ResourceClaims; vendor driver maturity varies | [GPUs on Kubernetes](<https://computecentral.in/kubernetes/ai-workloads/01-gpus-on-kubernetes/index.md#dynamic-resource-allocation-dra>) |
| **preStop `sleep` action** stable (v1.34) | Delay shutdown so endpoints drain, without a `sleep` binary in the image | [Deployment Strategies](<https://computecentral.in/kubernetes/workloads-and-scheduling/01-deployment-strategies/index.md#what-most-engineers-miss>) |
| **Native sidecar containers** stable (v1.33) | Sidecars start before and stop after the app, and don't block Jobs from completing | [Pods](<https://computecentral.in/kubernetes/core-concepts/01-pods/index.md#native-sidecar-containers-kubernetes-v133>) |
| **In-place Pod resize** stable (v1.35) | Change CPU/memory of a running Pod without restarting it; VPA can use it | [Autoscaling](<https://computecentral.in/kubernetes/workloads-and-scheduling/06-autoscaling/index.md#verticalpodautoscaler>) |
| **kube-proxy nftables mode** stable (v1.33), IPVS deprecated (v1.35) | Prefer nftables (or eBPF) for large clusters | [Services Deep Dive](<https://computecentral.in/kubernetes/networking/02-services-deep-dive/index.md>) |
| **Endpoints API** deprecated (v1.33) | Use `kubectl get endpointslices` in scripts and debugging | [Services](<https://computecentral.in/kubernetes/core-concepts/03-services/index.md>) |
| **ValidatingAdmissionPolicy** stable (v1.30) | Simple admission rules in CEL, with no webhook to run | [Authentication and Authorization](<https://computecentral.in/kubernetes/security/01-authentication-and-authorization/index.md#built-in-policies-validatingadmissionpolicy>) |
| **Helm 4** released (Nov 2025) | Server-side apply, new plugin system; test pipelines before upgrading | [Helm](<https://computecentral.in/kubernetes/configuration-and-packaging/04-helm-fundamentals-and-writing-charts/index.md>) |
| **cgroup v1** being removed; swap support stable | Nodes need cgroup v2; swap can now be enabled deliberately | [kubeadm Cluster Setup](<https://computecentral.in/kubernetes/cluster-administration/01-kubeadm-cluster-setup/index.md>) |
| **etcd 3.6** | Snapshot restore moved from `etcdctl` to `etcdutl` | [Backup and Restore](<https://computecentral.in/kubernetes/cluster-administration/05-backup-and-restore/index.md>) |

## Every Section

- [Getting Started](<https://computecentral.in/kubernetes/getting-started/index.md>) — history and origins, what Kubernetes actually is, control-plane architecture, installing kubectl, your first deployment
- [Core Concepts](<https://computecentral.in/kubernetes/core-concepts/index.md>) — Pods, ReplicaSets and Deployments, Services, namespaces, labels and selectors, Jobs and CronJobs
- [Workloads & Scheduling](<https://computecentral.in/kubernetes/workloads-and-scheduling/index.md>) — deployment strategies, StatefulSets, DaemonSets, affinity and taints, requests/limits, autoscaling
- [Networking](<https://computecentral.in/kubernetes/networking/index.md>) — the cluster networking model, Services in depth, Ingress, NetworkPolicy, DNS, CNI plugins
- [Storage](<https://computecentral.in/kubernetes/storage/index.md>) — volumes, PersistentVolumes and Claims, StorageClasses and dynamic provisioning, StatefulSet storage
- [Configuration & Packaging](<https://computecentral.in/kubernetes/configuration-and-packaging/index.md>) — ConfigMaps and Secrets in depth, config injection, Helm, Kustomize, external secret stores
- [Security](<https://computecentral.in/kubernetes/security/index.md>) — authentication and authorization, RBAC, service accounts, Pod Security Admission, supply chain, encryption at rest
- [Observability & Health](<https://computecentral.in/kubernetes/observability/index.md>) — probes, logging architecture, metrics-server, events and debugging
- [Cluster Administration](<https://computecentral.in/kubernetes/cluster-administration/index.md>) — kubeadm, etcd, node management, upgrades, backup and restore, multi-tenancy
- [CI/CD & GitOps](<https://computecentral.in/kubernetes/cicd-and-gitops/index.md>) — pipelines for Kubernetes, kubectl scripting, progressive delivery, ArgoCD and Flux
- [Production Engineering](<https://computecentral.in/kubernetes/production-engineering/index.md>) — capacity planning, cost optimization, multi-cluster design, disaster recovery, readiness review
- [AI Workloads](<https://computecentral.in/kubernetes/ai-workloads/index.md>) — GPUs and DRA, serving LLMs with vLLM, the Gateway API Inference Extension and llm-d, agent gateways and sandboxes
- [OpenShift](<https://computecentral.in/kubernetes/openshift/index.md>) — what OpenShift adds, the `oc` CLI and Projects, Routes, Source-to-Image, Operators
- [Labs](<https://computecentral.in/kubernetes/labs/index.md>) — minikube, kind, Docker Desktop, Podman, and guided hands-on scenarios
- [Case Studies](<https://computecentral.in/kubernetes/case-studies/index.md>) — full worked deployments, including the failure paths
- [Troubleshooting](<https://computecentral.in/kubernetes/troubleshooting/index.md>) — a symptom-first debugging methodology, not just a list of errors
- [Interview Preparation](<https://computecentral.in/kubernetes/interview-prep/index.md>) — by subject and by level, tied back to the concepts
- [Quick Reference](<https://computecentral.in/kubernetes/quick-reference/index.md>) — cheat sheets, no prose

## Related Learning

- [Docker and Linux Containers](<https://computecentral.in/docker/index.md>) — the runtime layer underneath every pod
- [Ansible Automation](<https://computecentral.in/ansible/index.md>) — configuring the machines Kubernetes nodes run on
- [Monitoring and SRE](<https://computecentral.in/monitoring-tools/index.md>)

## Further Reading

- [Kubernetes Documentation](<https://kubernetes.io/docs/>)
- [Kubernetes on GitHub](<https://github.com/kubernetes/kubernetes>)
- [CNCF](<https://www.cncf.io/>)
- [Red Hat OpenShift Documentation](<https://docs.redhat.com/en/documentation/openshift_container_platform/>)
