From Cluster Foundations to Production Operations at Scale
Introduction: The Administrator’s Burden
- What This Book Covers
- How to Use This Book
- Conventions
- What Changed in Recent Kubernetes Versions
- The Administrator’s Mindset
Chapter 1: The Kubernetes Architecture Deep Dive
- From Containers to Orchestration: Why Kubernetes Won
- The Control Plane Anatomy: API Server, etcd, Scheduler, Controller Manager
- The Node Plane: kubelet, kube-proxy, Container Runtime
- Object Model and the Declarative API
- Data Flow: How a Request Travels Through the Cluster
- Review Questions
Chapter 2: Installation, Bootstrap, and Cluster Design
- Choosing Your Path: Manual vs Automated vs Managed
- kubeadm Bootstrap: Step by Step
- Binary Installations and Full Control
- Distribution Landscape: k3s, RKE2, OpenShift, Talos, K0s
- Cluster Sizing and Capacity Planning
- Multi-Master High Availability Design Patterns
- Review Questions
Chapter 3: Networking Fundamentals and CNI Plugins
- Pod Networking Model and IP Allocation
- Service Types: ClusterIP, NodePort, LoadBalancer, ExternalName
- kube-proxy Modes: iptables vs IPVS vs eBPF
- CNI Plugin Ecosystem: Calico, Cilium, Flannel, Canal
- Network Policies: Zero Trust in the Pod Layer
- Ingress Controllers and Edge Routing
- Review Questions
Chapter 4: Storage Architecture and Persistent Volumes
- Volume Types and Mount Semantics
- Persistent Volumes and PersistentVolumeClaims
- Dynamic Provisioning and StorageClasses
- CSI Drivers: The Modern Storage Interface
- StatefulSets and Storage Topology
- Backup Patterns for Persistent Data
- Review Questions
Chapter 5: Workload Management and Scheduling
- The Scheduler: Scoring, Predicates, and Plugins
- Resource Requests, Limits, and QoS Classes
- Node Selectors, Affinity, and Taints/Tolerations
- Workload Controllers: Deployments, DaemonSets, Jobs, CronJobs
- Horizontal Pod Autoscaling and Cluster Autoscaling
- Custom Scheduling with Descheduler and Kueue
- Review Questions
Chapter 6: Security Foundations, Authentication, Authorization, and RBAC
- Authentication: X509, Service Accounts, OIDC, Webhooks
- Authorization Modes: RBAC, ABAC, Node, Webhook
- RBAC Deep Dive: Roles, ClusterRoles, Bindings
- Pod Security: Admission Controllers and Standards
- Image Security: Signing, Scanning, and Admission
- Network Segmentation and Security Contexts
- Review Questions
Chapter 7: Secrets Management and Configuration
- ConfigMaps and Environment Variables
- Native Kubernetes Secrets: Capabilities and Limitations
- External Secrets Operator and Vault Integration
- Sealed Secrets and GitOps-Friendly Patterns
- Configuration Management at Scale
- Rotation Strategies and Audit Trails
- Review Questions
Chapter 8: Observability, Logging, Monitoring, and Troubleshooting
- The Three Pillars: Metrics, Logs, Traces
- Prometheus and the Monitoring Stack
- Logging Architectures: Fluentd, Fluent Bit, Loki, EFK
- Distributed Tracing with Jaeger and OpenTelemetry
- Systematic Troubleshooting Methodology
- Debugging Tools: kubectl debug, Ephemeral Containers, crictl
- Review Questions
Chapter 9: Backup, Disaster Recovery, and Upgrades
- etcd Backup and Restore Strategies
- Velero: Application-Aware Backups
- Cluster Upgrade Planning and Execution
- Rolling Updates vs Blue-Green vs Canary
- Disaster Recovery Runbooks and Testing
- Review Questions
Chapter 10: Scalability, High Availability, and Performance Tuning
- Cluster Scaling Limits and Hard Numbers
- Control Plane High Availability Patterns
- Node Pool Design and Auto-Scaling Strategies
- API Server Performance Tuning
- etcd Performance: Compaction, Defragmentation, Sizing
- Large Cluster Design: Thousands of Nodes
- Review Questions
Chapter 11: GitOps, CI/CD Integration, and Policy Enforcement
- GitOps Principles and Architecture
- Argo CD vs Flux: Controllers Compared
- CI/CD Pipeline Integration Patterns
- OPA Gatekeeper and Policy as Code
- Kyverno: Native Policy Engine
- Supply Chain Security: Sigstore, Cosign, Conftest
- Review Questions
Chapter 12: Service Meshes and Multi-Cluster Management
- Service Mesh Architecture: Why and When
- Istio Deep Dive: Proxy, Control Plane, Configuration
- Linkerd and Lightweight Alternatives
- Multi-Cluster Patterns: Federation, Clusters API, ACM
- Cross-Cluster Networking and DNS
- Centralized Management at Scale
- Review Questions
Chapter 13: Production Operations, Cost Optimization, and Emerging Trends
- Cloud-Managed Platforms: EKS, GKE, AKS Compared
- On-Premises Deployments: Rancher, OpenShift, Bare Metal
- Production Runbooks and Operational Checklists
- Cost Optimization: FinOps for Kubernetes
- Real-World Case Studies and Lessons Learned
- Emerging Trends: eBPF, WebAssembly, KubeEdge, AI/ML Workloads
- Review Questions
