Chapter 15: Kubernetes Introduction
Chala mitrano, aaj aapan Kubernetes — ek server nahi, cluster manager jo failed pods restart karto. Pod, Deployment, Service, Namespace, Compose nantar ka orchestrator, kubectl get/describe/logs/apply. Local lab tool: kind (Kubernetes in Docker) — ekach choose, stick. badge API image deploy + Service ports (published ports). latest tag prod madhe — nako. Ghabru naka: cluster up → apply → curl/port-forward.
What you will learn in this chapter
- Why orchestrators after Compose
- Pod, Deployment, Service, Namespace
- kubectl get, describe, logs, apply
- Local kind cluster for labs
- Deploy badge API and reach it safely
Concepts in this chapter
- 15.1Why Kubernetes after Compose
- 15.2Primary local tool — kind
- 15.3Core objects — Pod, Deployment, Service, Namespace
- 15.4kubectl everyday verbs
- 15.5Manifest sketch — Deployment + Service for badge API
- 15.6Reaching the app — port-forward (kind-friendly)
- 15.7Rolling update and rollback (light)
- 15.8Probes — readiness vs liveness (awareness)
- 15.9Config and secrets — concepts only
- 15.10Troubleshooting table
- 15.11Security basics (pointer)
- 15.12Anti-patterns
- 15.13Lab — kind cluster, deploy, curl
Review and practice
- ★15.12b Declarative apply vs imperative run
- ★15.12c Resource requests (awareness)
- ★15.12d Loading a local image into kind (common lab snag)
- ★15.12e Namespaces and who can break what
The chapter recap is at the end of the last concept page.